From: kremlin Date: Thu, 7 Aug 2014 05:18:58 +0000 (-0500) Subject: minor, initialize counter to zero. i might be a bit tired. X-Git-Url: http://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=commitdiff_plain;h=1ed17375637607e3c3fd7ad4e5729b94c90dd3c7;p=systembsd.git minor, initialize counter to zero. i might be a bit tired. --- diff --git a/src/interfaces/hostnamed/hostnamed.c b/src/interfaces/hostnamed/hostnamed.c index f1c3fb4..e7edd7e 100644 --- a/src/interfaces/hostnamed/hostnamed.c +++ b/src/interfaces/hostnamed/hostnamed.c @@ -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);