diff --git a/client/hostinfo_unix.cpp b/client/hostinfo_unix.cpp index d60015fd6f..c465456e24 100644 --- a/client/hostinfo_unix.cpp +++ b/client/hostinfo_unix.cpp @@ -464,6 +464,7 @@ void HOST_INFO::get_battery_status() { if (first) { first = false; + int i = 0; // Find the battery location for this device. // matszpk has already collected a bunch of battery locations.