readahead-analyze: don't call fclose on null

This commit is contained in:
Lukas Nykryn
2012-08-23 13:53:30 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 032f81645b
commit 403a56bf81
+2 -1
View File
@@ -144,6 +144,7 @@ int main_analyze(const char *pack_path) {
return EXIT_SUCCESS;
fail:
fclose(pack);
if(pack)
fclose(pack);
return EXIT_FAILURE;
}