shithub: choc

Download patch

ref: 2f5571d72c555845a9103e6974ae9d3240d1aa1d
parent: 3409f7a87160b5c7b61f0b7f377705643dfc7428
parent: 921666f7046ed38ff42fe233d8cd0a5f83578418
author: Fabian Greffrath <fabian@greffrath.com>
date: Wed Jan 23 05:12:12 EST 2019

Merge branch 'master' of https://github.com/chocolate-doom/chocolate-doom

--- a/src/i_glob.c
+++ b/src/i_glob.c
@@ -319,6 +319,11 @@
 {
     const char *result;
 
+    if (glob == NULL)
+    {
+        return NULL;
+    }
+
     // In unsorted mode we just return the filenames as we read
     // them back from the system API.
     if ((glob->flags & GLOB_FLAG_SORTED) == 0)