sd-hwdb: initialize variable

The variable 'fn' was not initialized on compat mode.

Fixes CID#1395731.
This commit is contained in:
Yu Watanabe 2018-09-20 16:38:19 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 5c86583cf8
commit 80f1b34442
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ static int trie_values_cmp(const struct trie_value_entry *a, const struct trie_v
static int trie_node_add_value(struct trie *trie, struct trie_node *node,
const char *key, const char *value,
const char *filename, uint16_t file_priority, uint32_t line_number, bool compat) {
ssize_t k, v, fn;
ssize_t k, v, fn = 0;
struct trie_value_entry *val;
k = strbuf_add_string(trie->strings, key, strlen(key));