From 5ac7f54296c8986b0be822ec8034ef8b265914d2 Mon Sep 17 00:00:00 2001 From: kremlin Date: Thu, 7 Aug 2014 00:18:58 -0500 Subject: [PATCH] minor, initialize counter to zero. i might be a bit tired. --- src/interfaces/hostnamed/hostnamed.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.41.0