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-Tag: gsoc-final~32 X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=commitdiff_plain;h=5ac7f54296c8986b0be822ec8034ef8b265914d2;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);