summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2018-07-10 12:54:34 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-07-10 12:46:48 +0000
commit35786c9529fe0b6ce11103ca8dbfd1316d236790 (patch)
tree024b82fdf1055d6b6e3ddd91e7b57c57883adee0
parente3ec1ec5374cee7748eaa0fe3e7711c074a13e2e (diff)
downloadflatpak-35786c9529fe0b6ce11103ca8dbfd1316d236790.tar.gz
update-remote-config: Fix potential NULL dereference
This fixed coverity issue 1471683. Closes: #1880 Approved by: mwleeds
-rw-r--r--common/flatpak-dir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c
index ee62d55a..b95483f6 100644
--- a/common/flatpak-dir.c
+++ b/common/flatpak-dir.c
@@ -11282,7 +11282,8 @@ flatpak_dir_update_remote_configuration (FlatpakDir *self,
return FALSE;
unlink (summary_path);
- unlink (summary_sig_path);
+ if (summary_sig_path)
+ unlink (summary_sig_path);
}
return TRUE;