diff options
author | onefang | 2021-07-07 12:46:43 +1000 |
---|---|---|
committer | onefang | 2021-07-07 12:46:43 +1000 |
commit | dd7e6cb83dd95b9d83a0ed8d2672bd24a614da13 (patch) | |
tree | 04395b46acfa7359b14013f478eecf5d29ebf132 | |
parent | Add gods to OhSilly threat level config. (diff) | |
download | opensim-SC-dd7e6cb83dd95b9d83a0ed8d2672bd24a614da13.zip opensim-SC-dd7e6cb83dd95b9d83a0ed8d2672bd24a614da13.tar.gz opensim-SC-dd7e6cb83dd95b9d83a0ed8d2672bd24a614da13.tar.bz2 opensim-SC-dd7e6cb83dd95b9d83a0ed8d2672bd24a614da13.tar.xz |
Patch for qlibc.
-rwxr-xr-x | src/BuildIt.sh | 3 | ||||
-rw-r--r-- | src/patches/qlibc.patch | 12 |
2 files changed, 15 insertions, 0 deletions
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 "" | |||
60 | if [ ! -d git-sub-modules/qlibc ]; then | 60 | if [ ! -d git-sub-modules/qlibc ]; then |
61 | pushd git-sub-modules >/dev/null | 61 | pushd git-sub-modules >/dev/null |
62 | git clone https://github.com/wolkykim/qlibc.git | 62 | git clone https://github.com/wolkykim/qlibc.git |
63 | pushd qlibc >/dev/null | ||
64 | patch -p1 <../../patches/qlibc.patch | ||
65 | popd >/dev/null | ||
63 | popd >/dev/null | 66 | popd >/dev/null |
64 | else | 67 | else |
65 | pushd git-sub-modules/qlibc >/dev/null | 68 | 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 @@ | |||
1 | diff --git a/src/extensions/qconfig.c b/src/extensions/qconfig.c | ||
2 | index 745a28b..87bfd67 100644 | ||
3 | --- a/src/extensions/qconfig.c | ||
4 | +++ b/src/extensions/qconfig.c | ||
5 | @@ -399,6 +399,7 @@ static char *_parsestr(qlisttbl_t *tbl, const char *str) { | ||
6 | } | ||
7 | if ((newstr = tbl->getstr(tbl, varstr, true)) == NULL) { | ||
8 | s = e; // not found | ||
9 | +free(varstr); | ||
10 | continue; | ||
11 | } | ||
12 | break; | ||