mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 10:49:59 +01:00
compilation warning fix
This commit is contained in:
@@ -431,7 +431,8 @@ void Settings::Lock()
|
|||||||
FILE *file = fopen(lockfile.c_str(), "r");
|
FILE *file = fopen(lockfile.c_str(), "r");
|
||||||
int l = 0;
|
int l = 0;
|
||||||
if (file) {
|
if (file) {
|
||||||
fscanf(file, "%d", &l);
|
if ( fscanf(file, "%d", &l) < 1)
|
||||||
|
l = 0;
|
||||||
fclose(file);
|
fclose(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user