diff options
author | Lucas Stach <dev@lynxeye.de> | 2014-02-07 09:48:48 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-10 08:49:55 +0100 |
commit | be9758bc17dc6042d2cc022b35743a9c8e8114ec (patch) | |
tree | 33a97f1924082b2b329ac5976d228346f4751e33 /lib | |
parent | efe314434ff54542b6939b52b86c01e820add044 (diff) | |
download | barebox-be9758bc17dc6042d2cc022b35743a9c8e8114ec.tar.gz barebox-be9758bc17dc6042d2cc022b35743a9c8e8114ec.tar.xz |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libbb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libbb.c b/lib/libbb.c index 189a1705cc..dd42e662b4 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); } |