From: graham.gower Date: Fri, 13 Nov 2009 05:57:45 +0000 (+0000) Subject: Fix the case where -o is used, but no conf file is passed. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3c6599f1f39f1b460c12284682e46a2953b4e535;p=oweals%2Fopkg-lede.git Fix the case where -o is used, but no conf file is passed. git-svn-id: http://opkg.googlecode.com/svn/trunk@300 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- diff --git a/libopkg/opkg_conf.c b/libopkg/opkg_conf.c index 2d7b881..2a3ea0c 100644 --- a/libopkg/opkg_conf.c +++ b/libopkg/opkg_conf.c @@ -154,8 +154,8 @@ int opkg_conf_init(opkg_conf_t *conf, const args_t *args) } } - offline_root = conf->offline_root; opkg_conf_override_string(&conf->offline_root, args->offline_root); + offline_root = conf->offline_root; if (conf->offline_root) sprintf_alloc(&etc_opkg_conf_pattern, "%s/etc/opkg/*.conf", conf->offline_root);