mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-02 09:47:03 +03:00
hwdb: fix error check of wrong variable (#4499)
We updated 'fn' but checked 'v' instead. From 698c5a17 Spotted with PVS
This commit is contained in:
parent
a5eebcff37
commit
342d3ac165
@ -172,8 +172,8 @@ static int trie_node_add_value(struct trie *trie, struct trie_node *node,
|
||||
if (v < 0)
|
||||
return v;
|
||||
fn = strbuf_add_string(trie->strings, filename, strlen(filename));
|
||||
if (v < 0)
|
||||
return v;
|
||||
if (fn < 0)
|
||||
return fn;
|
||||
|
||||
if (node->values_count) {
|
||||
struct trie_value_entry search = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user