texlive-bin: fix build failure for i686 and x86_64 (due to NDK r16?)
[termux-packages] / packages / htop / fix-sigsegv.patch
1 diff -uNr htop-2.0.2/StringUtils.c htop-2.0.2.mod/StringUtils.c
2 --- htop-2.0.2/StringUtils.c 2016-06-20 18:11:13.000000000 +0300
3 +++ htop-2.0.2.mod/StringUtils.c 2017-09-26 13:33:10.596064441 +0300
4 @@ -88,6 +88,10 @@
5 }
6
7 void String_freeArray(char** s) {
8 + if (!s) {
9 + return;
10 + }
11 +
12 for (int i = 0; s[i] != NULL; i++) {
13 free(s[i]);
14 }