Compiling with optimization FTW.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
/* This frees to if we're supposed to take it. */
cto = path_canon(tmpctx, to);
/* This frees to if we're supposed to take it. */
cto = path_canon(tmpctx, to);
+ if (!cto) {
+ ret = NULL;
/* How much is in common? */
for (common = i = 0; cfrom[i] && cto[i]; i++) {
/* How much is in common? */
for (common = i = 0; cfrom[i] && cto[i]; i++) {
+ if (ret)
+ ret[len] = '\0';
+
out:
if (taken(linkname))
tal_free(linkname);
out:
if (taken(linkname))
tal_free(linkname);