lib/loopdev: fix part scan detection code

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2012-02-02 14:29:22 +01:00
parent 383e7a2720
commit 8b04761dc6

View file

@ -763,7 +763,7 @@ int loopmod_supports_partscan(void)
return 0;
rc = fscanf(f, "%d", &ret);
fclose(f);
return rc = 1 ? ret : 0;
return rc == 1 ? ret : 0;
}
/*