summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-sd-hwdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-sd-hwdb.c b/src/test/test-sd-hwdb.c
index b67a8537bf..17ca6a0e27 100644
--- a/src/test/test-sd-hwdb.c
+++ b/src/test/test-sd-hwdb.c
@@ -5,7 +5,7 @@
#include "tests.h"
static int test_failed_enumerate(void) {
- _cleanup_(sd_hwdb_unrefp) sd_hwdb *hwdb;
+ _cleanup_(sd_hwdb_unrefp) sd_hwdb *hwdb = NULL;
const char *key, *value;
int r;
@@ -29,7 +29,7 @@ static int test_failed_enumerate(void) {
"evdev:atkbd:dmi:bvnXXX:bvrYYY:bdZZZ:svnDellXXX:pnYYY"
static void test_basic_enumerate(void) {
- _cleanup_(sd_hwdb_unrefp) sd_hwdb *hwdb;
+ _cleanup_(sd_hwdb_unrefp) sd_hwdb *hwdb = NULL;
const char *key, *value;
size_t len1 = 0, len2 = 0;
int r;