Commit 0939b691 authored by Rusty Russell's avatar Rusty Russell

ccanlint: fix abort on "-d ..".

parent b3804e47
......@@ -28,7 +28,7 @@ char *talloc_basename(const void *ctx, const char *dir)
char *p = strrchr(dir, '/');
if (!p)
return (char *)dir;
return talloc_strdup(ctx, dir);
return talloc_strdup(ctx, p+1);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment