syntax/whitespace touchup
This commit is contained in:
parent
540d3f60f3
commit
9dc93ac561
@ -34,11 +34,11 @@ extern char *concat_path_file(const char *path, const char *filename)
|
|||||||
char *lc;
|
char *lc;
|
||||||
|
|
||||||
if (!path)
|
if (!path)
|
||||||
path="";
|
path = "";
|
||||||
lc = last_char_is(path, '/');
|
lc = last_char_is(path, '/');
|
||||||
while (*filename == '/')
|
while (*filename == '/')
|
||||||
filename++;
|
filename++;
|
||||||
bb_xasprintf(&outbuf, "%s%s%s", path, (lc==NULL)? "/" : "", filename);
|
bb_xasprintf(&outbuf, "%s%s%s", path, (lc==NULL ? "/" : ""), filename);
|
||||||
|
|
||||||
return outbuf;
|
return outbuf;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user