[package] opkg: fix invalid free triggered by 011-old-config-location.patch and repla...
[openwrt/svn-archive/archive.git] / package / opkg / patches / 011-old-config-location.patch
index 40d0b7566506258efda659b9ee69a38e6113e488..518993b254ae2bc13347ab97c887073a19beb86b 100644 (file)
@@ -7,7 +7,7 @@
 -    
 +
 +      if(!conf->conf_file)
-+              conf->conf_file = "/etc/opkg.conf";
++              conf->conf_file = xstrdup("/etc/opkg.conf");
 +
        if (parse_err)
                return parse_err;