diff options
author | kremlin <ian@kremlin.cc> | 2014-08-07 13:18:58 +0800 |
---|---|---|
committer | kremlin <ian@kremlin.cc> | 2014-08-07 13:18:58 +0800 |
commit | 5ac7f54296c8986b0be822ec8034ef8b265914d2 (patch) | |
tree | 7f71923cd2ff8c34e7570a77495811099c84255d | |
parent | b81ab32a35147a06710a58f32283d12b08599ea7 (diff) | |
download | systembsd-5ac7f54296c8986b0be822ec8034ef8b265914d2.tar systembsd-5ac7f54296c8986b0be822ec8034ef8b265914d2.tar.gz systembsd-5ac7f54296c8986b0be822ec8034ef8b265914d2.tar.bz2 systembsd-5ac7f54296c8986b0be822ec8034ef8b265914d2.tar.lz systembsd-5ac7f54296c8986b0be822ec8034ef8b265914d2.tar.xz systembsd-5ac7f54296c8986b0be822ec8034ef8b265914d2.tar.zst systembsd-5ac7f54296c8986b0be822ec8034ef8b265914d2.zip |
minor, initialize counter to zero. i might be a bit tired.
-rw-r--r-- | src/interfaces/hostnamed/hostnamed.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |