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:
parent
efe314434f
commit
be9758bc17
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue