aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkremlin <ian@kremlin.cc>2014-08-07 12:29:51 +0800
committerkremlin <ian@kremlin.cc>2014-08-07 12:29:51 +0800
commit68e777c60747f9701ff48e0135c4a5bb08ad0acc (patch)
treedddf3f39d7d2002e42e2cd408009c72e9bd8ce7e
parent6edc347a0f6499d820206f93d4d6ac8893d374be (diff)
downloadsystembsd-68e777c60747f9701ff48e0135c4a5bb08ad0acc.tar
systembsd-68e777c60747f9701ff48e0135c4a5bb08ad0acc.tar.gz
systembsd-68e777c60747f9701ff48e0135c4a5bb08ad0acc.tar.bz2
systembsd-68e777c60747f9701ff48e0135c4a5bb08ad0acc.tar.lz
systembsd-68e777c60747f9701ff48e0135c4a5bb08ad0acc.tar.xz
systembsd-68e777c60747f9701ff48e0135c4a5bb08ad0acc.tar.zst
systembsd-68e777c60747f9701ff48e0135c4a5bb08ad0acc.zip
minor, init some vars to 0 for saftey
-rw-r--r--src/interfaces/hostnamed/hostnamed.c2
1 files changed, 2 insertions, 0 deletions
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;