summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-28 16:33:41 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-28 16:33:41 +0100
commit444176e8aa3a958f147f15542793678b619be262 (patch)
tree3bae8dc0b3fd98ebffc239c6f4d0bb2e7604d957 /tools
parent05abc676e9272fdf933e0ea376bb12d8ec497467 (diff)
fix host build stuff and update-patches, convert cifs-utils and libaudiofile to new autotool infrastructure
Diffstat (limited to 'tools')
-rw-r--r--tools/adk/pkgmaker.c7
1 files changed, 5 insertions, 2 deletions
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;