From be9758bc17dc6042d2cc022b35743a9c8e8114ec Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Fri, 7 Feb 2014 09:48:48 +0100 Subject: [PATCH] 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 Signed-off-by: Sascha Hauer --- lib/libbb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libbb.c b/lib/libbb.c index 189a1705c..dd42e662b 100644 --- a/lib/libbb.c +++ b/lib/libbb.c @@ -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); }