From e294b129b81ba519a848ec875e446d94d73c14f7 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Thu, 10 Aug 2017 13:30:53 -0400
Subject: [PATCH] fix invalid read when no args are supplied

---
 externals/zexy/src/strcmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/externals/zexy/src/strcmp.c b/externals/zexy/src/strcmp.c
index 69fe95357..2d9f8ce93 100644
--- a/externals/zexy/src/strcmp.c
+++ b/externals/zexy/src/strcmp.c
@@ -79,7 +79,7 @@ static void list2binbuf(t_binbuf**bbuf, int *n, char**str, int argc,
   i=*n;
   s=*str;
 
-  if(' '==s[i]) {
+  if(s && ' '==s[i]) {
     s[i]=0;
   }
 }
-- 
GitLab