Fix a leak found when using --force-reinstall.
[oweals/opkg-lede.git] / libopkg / str_util.c
index e1f5e682aca126efb5461c49532a3a909e652b45..d583b7a8ee6f895e09564c8a14dca1f3ff284ba3 100644 (file)
@@ -1,4 +1,4 @@
-/* str_utils.c - the itsy package management system
+/* str_utils.c - the opkg package management system
 
    Carl D. Worth
 
@@ -15,7 +15,7 @@
    General Public License for more details.
 */
 
-#include "opkg.h"
+#include "includes.h"
 
 int str_starts_with(const char *str, const char *prefix)
 {
@@ -65,9 +65,3 @@ int str_toupper(char *str)
 
     return 0;
 }
-
-char *str_dup_safe(const char *str)
-{
-    return str ? strdup(str) : NULL;
-}
-