diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2017-08-20 20:45:20 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-08-20 21:16:41 +0100 |
commit | b4fff5c46940c1393807a9b9f7f74a4170bba819 (patch) | |
tree | 36ed46e6714aaf53b61e3555e8c6ca2ed78f995c | |
parent | ac44aac6ec3338d4c8d8ad8e47b8045b98f12c12 (diff) | |
download | appstream-glib-b4fff5c46940c1393807a9b9f7f74a4170bba819.tar.gz |
libappstream-builder/utils: Drop an unreachable branch
There’s a precondition check for (search != NULL), so the function will
hit an assertion failure before this branch.
Coverity CID: 1454189
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
-rw-r--r-- | libappstream-builder/asb-utils.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libappstream-builder/asb-utils.c b/libappstream-builder/asb-utils.c index 2f547c4..a69cea2 100644 --- a/libappstream-builder/asb-utils.c +++ b/libappstream-builder/asb-utils.c @@ -633,10 +633,6 @@ asb_glob_value_search (GPtrArray *array, const gchar *search) g_return_val_if_fail (array != NULL, NULL); g_return_val_if_fail (search != NULL, NULL); - /* invalid */ - if (search == NULL) - return NULL; - for (i = 0; i < array->len; i++) { tmp = g_ptr_array_index (array, i); if (fnmatch (tmp->glob, search, 0) == 0) |