Skip to content

Commit 0a174a9

Browse files
committed
Correct initialisation of firmware variables in compareVersions
1 parent cf850bb commit 0a174a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/network_interfaces/Wippersnapper_AIRLIFT.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ class Wippersnapper_AIRLIFT : public Wippersnapper {
195195
/********************************************************/
196196
bool compareVersions(const char *currentVersion,
197197
const char *requiredVersion) {
198-
int curMajor, curMinor, curPatch = 0;
199-
int reqMajor, reqMinor, reqPatch = 0;
198+
int curMajor = 0, curMinor = 0, curPatch = 0;
199+
int reqMajor = 0, reqMinor = 0, reqPatch = 0;
200200

201201
if (!sscanf(currentVersion, "%d.%d.%d", &curMajor, &curMinor, &curPatch) ||
202202
!sscanf(requiredVersion, "%d.%d.%d", &reqMajor, &reqMinor, &reqPatch)) {

0 commit comments

Comments
 (0)