From bb4cefcd2c4ba82ea9fd4642e2d2e03b34b71370 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 4 Jun 2011 13:53:55 +0200 Subject: [PATCH] xbps-{bin,repo}: init conffile to NULL. --- bin/xbps-bin/main.c | 2 +- bin/xbps-repo/main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/xbps-bin/main.c b/bin/xbps-bin/main.c index 3b91d52b..9cce6c7e 100644 --- a/bin/xbps-bin/main.c +++ b/bin/xbps-bin/main.c @@ -192,7 +192,7 @@ main(int argc, char **argv) bool yes, purge, with_debug, force_rm_with_deps, recursive_rm; bool install_auto, install_manual, show_download_pkglist_url; - rootdir = cachedir = NULL; + rootdir = cachedir = conffile = NULL; flags = rv = 0; yes = purge = force_rm_with_deps = recursive_rm = with_debug = false; install_auto = install_manual = show_download_pkglist_url = false; diff --git a/bin/xbps-repo/main.c b/bin/xbps-repo/main.c index 4ee094d6..a7ac5042 100644 --- a/bin/xbps-repo/main.c +++ b/bin/xbps-repo/main.c @@ -86,11 +86,11 @@ main(int argc, char **argv) struct xbps_handle xh; struct xbps_fetch_progress_data xfpd; prop_dictionary_t pkgd; - const char *rootdir = NULL, *cachedir = NULL, *conffile = NULL; + const char *rootdir, *cachedir, *conffile; int c, rv = 0; bool debug = false; - rootdir = cachedir = NULL; + rootdir = cachedir = conffile = NULL; while ((c = getopt(argc, argv, "C:c:dr:V")) != -1) { switch (c) {