-/* 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;
}