compilation warning fix

This commit is contained in:
brunoherbelin
2020-11-07 18:36:52 +01:00
parent bfb0576e26
commit fcc014e5d1

View File

@@ -431,7 +431,8 @@ void Settings::Lock()
FILE *file = fopen(lockfile.c_str(), "r");
int l = 0;
if (file) {
fscanf(file, "%d", &l);
if ( fscanf(file, "%d", &l) < 1)
l = 0;
fclose(file);
}