mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
lib/dload: prevent possible NULL dereference
Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
16334f778b
commit
1723e6dc4f
@ -396,7 +396,7 @@ cleanup:
|
||||
}
|
||||
}
|
||||
|
||||
if((ret == -1 || dload_interrupted) && should_unlink) {
|
||||
if((ret == -1 || dload_interrupted) && should_unlink && tempfile) {
|
||||
unlink(tempfile);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user