From dd7e6cb83dd95b9d83a0ed8d2672bd24a614da13 Mon Sep 17 00:00:00 2001 From: onefang Date: Wed, 7 Jul 2021 12:46:43 +1000 Subject: Patch for qlibc. --- src/BuildIt.sh | 3 +++ src/patches/qlibc.patch | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/patches/qlibc.patch diff --git a/src/BuildIt.sh b/src/BuildIt.sh index d9320a4..20510b3 100755 --- a/src/BuildIt.sh +++ b/src/BuildIt.sh @@ -60,6 +60,9 @@ echo "" if [ ! -d git-sub-modules/qlibc ]; then pushd git-sub-modules >/dev/null git clone https://github.com/wolkykim/qlibc.git + pushd qlibc >/dev/null + patch -p1 <../../patches/qlibc.patch + popd >/dev/null popd >/dev/null else pushd git-sub-modules/qlibc >/dev/null diff --git a/src/patches/qlibc.patch b/src/patches/qlibc.patch new file mode 100644 index 0000000..ac67deb --- /dev/null +++ b/src/patches/qlibc.patch @@ -0,0 +1,12 @@ +diff --git a/src/extensions/qconfig.c b/src/extensions/qconfig.c +index 745a28b..87bfd67 100644 +--- a/src/extensions/qconfig.c ++++ b/src/extensions/qconfig.c +@@ -399,6 +399,7 @@ static char *_parsestr(qlisttbl_t *tbl, const char *str) { + } + if ((newstr = tbl->getstr(tbl, varstr, true)) == NULL) { + s = e; // not found ++free(varstr); + continue; + } + break; -- cgit v1.1