1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

Remove unnecessary NULL check

fp can never be NULL at this point in the code, proven by Coccinelle.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2011-03-20 20:11:11 -05:00
parent 32e35d4028
commit 78e55be0e6

View File

@ -1230,9 +1230,7 @@ static int _parseconfig(const char *file, const char *givensection,
}
cleanup:
if(fp) {
fclose(fp);
}
fclose(fp);
if(section){
free(section);
}