From 57212bc2f6eb15cc880b8d1b39afaa3be4fdb3c2 Mon Sep 17 00:00:00 2001 From: YoungHun Kim Date: Fri, 15 Oct 2021 09:42:52 +0900 Subject: [PATCH] Fix Uninitialized scalar variable (UNINIT) Change-Id: I53708468d973ff7abb3d69959e8b0dcd0d538809 --- packaging/murphy.spec | 2 +- src/common/tests/hash-test.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packaging/murphy.spec b/packaging/murphy.spec index 7f8d9e3..97e272a 100644 --- a/packaging/murphy.spec +++ b/packaging/murphy.spec @@ -29,7 +29,7 @@ Summary: Resource policy framework Name: murphy Version: 0.0.75 -Release: 22 +Release: 23 License: BSD-3-Clause Group: System/Service URL: http://01.org/murphy/ diff --git a/src/common/tests/hash-test.c b/src/common/tests/hash-test.c index 6195775..b85ffd6 100644 --- a/src/common/tests/hash-test.c +++ b/src/common/tests/hash-test.c @@ -354,6 +354,7 @@ test_run(void) cfg.hash = hash_func; cfg.comp = cmp_func; cfg.free = NULL; + cfg.nentry = 0; test.ht = hash_tbl_create(&cfg); if (test.ht == NULL) -- 2.34.1