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:
parent
32e35d4028
commit
78e55be0e6
@ -1230,9 +1230,7 @@ static int _parseconfig(const char *file, const char *givensection,
|
||||
}
|
||||
|
||||
cleanup:
|
||||
if(fp) {
|
||||
fclose(fp);
|
||||
}
|
||||
fclose(fp);
|
||||
if(section){
|
||||
free(section);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user