Print the package name corresponding to a failed script.
[oweals/opkg-lede.git] / libopkg / nv_pair.c
index 75a08e8dca0cd5040937446a5b39d21056a05715..2728100c2a07b75bae713901d51b8413d368db58 100644 (file)
@@ -1,4 +1,4 @@
-/* nv_pair.c - the itsy package management system
+/* nv_pair.c - the opkg package management system
 
    Carl D. Worth
 
    General Public License for more details.
 */
 
-#include "opkg.h"
-
 #include "nv_pair.h"
-#include "str_util.h"
+#include "libbb/libbb.h"
 
 int nv_pair_init(nv_pair_t *nv_pair, const char *name, const char *value)
 {
-    nv_pair->name = str_dup_safe(name);
-    nv_pair->value = str_dup_safe(value);
+
+    nv_pair->name = xstrdup(name);
+    nv_pair->value = xstrdup(value);
 
     return 0;
 }