From 444176e8aa3a958f147f15542793678b619be262 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 28 Oct 2013 16:33:41 +0100 Subject: fix host build stuff and update-patches, convert cifs-utils and libaudiofile to new autotool infrastructure --- tools/adk/pkgmaker.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/adk/pkgmaker.c b/tools/adk/pkgmaker.c index ed29ae062..6af7a0fa7 100644 --- a/tools/adk/pkgmaker.c +++ b/tools/adk/pkgmaker.c @@ -497,8 +497,9 @@ int main() { /* when PKG_LIBNAME exist use this instead of PKG_NAME, but only for !libmix */ if (pkg_libname != NULL) - if (strstr(pkg_opts, "libmix") == NULL) - pkg_name = strdup(pkg_libname); + if (pkg_opts != NULL) + if (strstr(pkg_opts, "libmix") == NULL) + pkg_name = strdup(pkg_libname); /* end of package Makefile parsing */ if (fclose(pkg) != 0) @@ -1047,6 +1048,7 @@ int main() { pkg_need_java = NULL; /* reset flags, free memory */ free(pkg_name); + free(pkg_libname); free(pkg_descr); free(pkg_section); free(pkg_url); @@ -1064,6 +1066,7 @@ int main() { free(pkg_cfline); free(pkg_multi); pkg_name = NULL; + pkg_libname = NULL; pkg_descr = NULL; pkg_section = NULL; pkg_url = NULL; -- cgit v1.2.3