summarylogtreecommitdiffstats
path: root/fix-segfault-due-to-strtok-glibc-v2.26-change.patch
diff options
context:
space:
mode:
Diffstat (limited to 'fix-segfault-due-to-strtok-glibc-v2.26-change.patch')
-rw-r--r--fix-segfault-due-to-strtok-glibc-v2.26-change.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/fix-segfault-due-to-strtok-glibc-v2.26-change.patch b/fix-segfault-due-to-strtok-glibc-v2.26-change.patch
new file mode 100644
index 00000000000..84f45e79958
--- /dev/null
+++ b/fix-segfault-due-to-strtok-glibc-v2.26-change.patch
@@ -0,0 +1,15 @@
+diff --git a/planck-c/main.c b/planck-c/main.c
+index 4daaff9..9a3996d 100644
+--- a/planck-c/main.c
++++ b/planck-c/main.c
+@@ -506,7 +506,9 @@ int main(int argc, char **argv) {
+ }
+ }
+
+- init_classpath(classpath);
++ if (classpath) {
++ init_classpath(classpath);
++ }
+
+
+ if (config.num_src_paths == 0) {