minor, initialize counter to zero. i might be a bit tired.
authorkremlin <ian@kremlin.cc>
Thu, 7 Aug 2014 05:18:58 +0000 (00:18 -0500)
committerkremlin <ian@kremlin.cc>
Thu, 7 Aug 2014 05:18:58 +0000 (00:18 -0500)
src/interfaces/hostnamed/hostnamed.c

index f1c3fb4b1b11e47cf17f3ef9fdc61343a4cd4e5a..e7edd7e6a69b00586925976ea46b404eaa457aa3 100644 (file)
@@ -409,6 +409,7 @@ gboolean determine_chassis_and_icon() {
 
     hwproduct_size = hwmodel_size = hwvendor_size = hwmachine_size = bufsize;
     UNSURE_CHASSIS_FLAG = UNSURE_ICON_FLAG = FALSE;
+    i = 0;
 
     hwproduct = (char*)g_malloc0(4096);
     hwmodel   = (char*)g_malloc0(4096);