diff options
author | kremlin <ian@kremlin.cc> | 2014-08-07 12:29:51 +0800 |
---|---|---|
committer | kremlin <ian@kremlin.cc> | 2014-08-07 12:29:51 +0800 |
commit | a112db4cc066c2331996d56ae40ea80579c46312 (patch) | |
tree | dddf3f39d7d2002e42e2cd408009c72e9bd8ce7e /src | |
parent | 7c61305486a9e878cfa562180b80ec968b18dd48 (diff) | |
download | systembsd-a112db4cc066c2331996d56ae40ea80579c46312.tar systembsd-a112db4cc066c2331996d56ae40ea80579c46312.tar.gz systembsd-a112db4cc066c2331996d56ae40ea80579c46312.tar.bz2 systembsd-a112db4cc066c2331996d56ae40ea80579c46312.tar.lz systembsd-a112db4cc066c2331996d56ae40ea80579c46312.tar.xz systembsd-a112db4cc066c2331996d56ae40ea80579c46312.tar.zst systembsd-a112db4cc066c2331996d56ae40ea80579c46312.zip |
minor, init some vars to 0 for saftey
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/hostnamed/hostnamed.c | 2 |
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; |