summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
98f2640)
We're modifying dir rather than cur (the local copy of dir), so the
caller-provided (const!) string is no longer const.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
cur = talloc_strdup(NULL, dir);
cur = talloc_strdup(NULL, dir);
- while (strcmp(base, dir)) {
+ while (strcmp(base, cur)) {
/* null-terminate at the last slash */
/* null-terminate at the last slash */
- pos = strrchr(dir, '/');
+ pos = strrchr(cur, '/');