From 68e777c60747f9701ff48e0135c4a5bb08ad0acc Mon Sep 17 00:00:00 2001 From: kremlin Date: Wed, 6 Aug 2014 23:29:51 -0500 Subject: [PATCH] minor, init some vars to 0 for saftey --- src/interfaces/hostnamed/hostnamed.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/interfaces/hostnamed/hostnamed.c b/src/interfaces/hostnamed/hostnamed.c index aa86a38..fae193e 100644 --- a/src/interfaces/hostnamed/hostnamed.c +++ b/src/interfaces/hostnamed/hostnamed.c @@ -406,6 +406,8 @@ gboolean determine_chassis_and_icon() { gboolean UNSURE_CHASSIS_FLAG, UNSURE_ICON_FLAG; hwproduct = hwmodel = hwvendor = hwmachine = NULL; + hwproduct_size = hwmodel_size = hwvendor_size = hwmachine_size = 0; + UNSURE_CHASSIS_FLAG = UNSURE_ICON_FLAG = FALSE; hwproduct_name[0] = CTL_HW; hwproduct_name[1] = HW_PRODUCT; -- 2.41.0