mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 08:51:13 +00:00
12 lines
256 B
Diff
12 lines
256 B
Diff
|
--- a/libopkg/opkg_download.c
|
||
|
+++ b/libopkg/opkg_download.c
|
||
|
@@ -335,7 +335,7 @@ opkg_prepare_url_for_install(const char
|
||
|
hash_insert_pkg(pkg, 1);
|
||
|
|
||
|
if (namep) {
|
||
|
- *namep = pkg->name;
|
||
|
+ *namep = xstrdup(pkg->name);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|