9
0
Fork 0

libbb: sparse fixes

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2010-10-15 09:46:20 +02:00
parent 107a1ec2cc
commit 0d1c13019e
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ char *concat_path_file(const char *path, const char *filename)
while (*filename == '/')
filename++;
str = xmalloc(strlen(path) + (lc==0 ? 1 : 0) + strlen(filename) + 1);
str = xmalloc(strlen(path) + (lc==NULL ? 1 : 0) + strlen(filename) + 1);
sprintf(str, "%s%s%s", path, (lc==NULL ? "/" : ""), filename);
return str;