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 | 1ed17375637607e3c3fd7ad4e5729b94c90dd3c7 (patch) | |
tree | 7f71923cd2ff8c34e7570a77495811099c84255d | |
parent | 22b1325099dda85800916f29c2ef2677c0e602e7 (diff) | |
download | systembsd-1ed17375637607e3c3fd7ad4e5729b94c90dd3c7.tar systembsd-1ed17375637607e3c3fd7ad4e5729b94c90dd3c7.tar.gz systembsd-1ed17375637607e3c3fd7ad4e5729b94c90dd3c7.tar.bz2 systembsd-1ed17375637607e3c3fd7ad4e5729b94c90dd3c7.tar.lz systembsd-1ed17375637607e3c3fd7ad4e5729b94c90dd3c7.tar.xz systembsd-1ed17375637607e3c3fd7ad4e5729b94c90dd3c7.tar.zst systembsd-1ed17375637607e3c3fd7ad4e5729b94c90dd3c7.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); |