summaryrefslogtreecommitdiff
path: root/skip/zynaddsubfx/fix-bogus-strstr.patch
blob: 8588045bd33fe4673738f8dc8157d9daad672013 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Source: @pullmoll
Upstream: no
Reason: This piece of code is ill-conceived and cannot work. Remove it.

--- a/rtosc/src/dispatch.c	2019-03-10 17:16:45.000000000 +0100
+++ b/rtosc/src/dispatch.c	2020-03-29 09:02:42.916119722 +0200
@@ -289,8 +289,7 @@
             return false;
     } else if(type == 4) {
         //extract substring
-        const char *sub=NULL;
-        return strstr(a,sub);
+        return false;
     } else if(type == RTOSC_MATCH_OPTIONS || type == 6) {
         return false;
     } else if(type == RTOSC_MATCH_ENUMERATED) {