9
0
Fork 0

lib: libbb: f should never be NULL

We assume it to be non NULL in other places, so
we are in much greater trouble if it actually is.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Lucas Stach 2014-02-07 09:48:48 +01:00 committed by Sascha Hauer
parent efe314434f
commit be9758bc17
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ EXPORT_SYMBOL(concat_path_file);
char *concat_subpath_file(const char *path, const char *f)
{
if (f && DOT_OR_DOTDOT(f))
if (DOT_OR_DOTDOT(f))
return NULL;
return concat_path_file(path, f);
}