From 83ab3fe977d26e348fe7a733812514367598f3cc Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 28 Jan 2010 17:44:23 +0100 Subject: [PATCH] xbps-bin/remove.c: set some pointers to NULL before checking them. --HG-- extra : convert_revision : xtraeme%40gmail.com-20100128164423-i00yg3xp3nlsoh6j --- bin/xbps-bin/remove.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/xbps-bin/remove.c b/bin/xbps-bin/remove.c index 5d780abf..d8e5a6d4 100644 --- a/bin/xbps-bin/remove.c +++ b/bin/xbps-bin/remove.c @@ -36,9 +36,9 @@ int xbps_autoremove_pkgs(bool force) { - prop_array_t orphans; - prop_object_t obj; - prop_object_iterator_t iter; + prop_array_t orphans = NULL; + prop_object_t obj = NULL; + prop_object_iterator_t iter = NULL; const char *pkgver, *pkgname, *version; size_t cols = 0; int rv = 0;