ref: d1ef6ca8b03b6b387fd5594d6f9cab2a2ea2b157
parent: f755aaec7e1858f11cc99df377f151ca288811cd
author: kvik <kvik@a-b.xyz>
date: Fri May 10 21:43:46 EDT 2019
error check smprint call
--- a/unionfs.c
+++ b/unionfs.c
@@ -105,8 +105,10 @@
for(i = 1; (a = va_arg(args, char*)) != nil && i < 3; i++)
ap[i] = a;
va_end(args);
+ if((a = smprint("%s/%s/%s", ap[0], ap[1], ap[2])) == nil)
+ sysfatal("smprint: %r");
- return cleanname(smprint("%s/%s/%s", ap[0], ap[1], ap[2]));
+ return cleanname(a);
}
Ref*