summaryrefslogtreecommitdiff
path: root/src/hwdb
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2018-03-27 20:30:02 +0300
committerGitHub <noreply@github.com>2018-03-27 20:30:02 +0300
commit1700f4f42c569adb7c15bb403f840263c9a5a88d (patch)
tree70995ae7c06e25c923a6e13765e78dd5324b7b50 /src/hwdb
parente64c2d0b5fbd8ab75d8f73f5820696ee15c8c6f0 (diff)
parent94ac201ac2dd8228038f0451d81aee897aa007f6 (diff)
downloadsystemd-1700f4f42c569adb7c15bb403f840263c9a5a88d.tar.gz
Merge pull request #8576 from keszybz/oss-fuzz
oss-fuzz adjustments and other cleanups
Diffstat (limited to 'src/hwdb')
-rw-r--r--src/hwdb/hwdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hwdb/hwdb.c b/src/hwdb/hwdb.c
index a60809ca65..958ccd4ca8 100644
--- a/src/hwdb/hwdb.c
+++ b/src/hwdb/hwdb.c
@@ -123,7 +123,7 @@ static struct trie_node *node_lookup(const struct trie_node *node, uint8_t c) {
struct trie_child_entry search;
search.c = c;
- child = bsearch(&search, node->children, node->children_count, sizeof(struct trie_child_entry), trie_children_cmp);
+ child = bsearch_safe(&search, node->children, node->children_count, sizeof(struct trie_child_entry), trie_children_cmp);
if (child)
return child->child;
return NULL;