projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3804e4
)
ccanlint: fix abort on "-d ..".
author
Rusty Russell
<rusty@rustcorp.com.au>
Mon, 30 Aug 2010 03:14:15 +0000
(12:44 +0930)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Mon, 30 Aug 2010 03:14:15 +0000
(12:44 +0930)
tools/tools.c
patch
|
blob
|
history
diff --git
a/tools/tools.c
b/tools/tools.c
index b7beda72b9c5b6cf0a5ec8beffb34d535887b6a3..2983cfca663bc730130899ae96cb16a75e62baa2 100644
(file)
--- a/
tools/tools.c
+++ b/
tools/tools.c
@@
-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);
}