]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - filematch.c
fix an error
[xonotic/darkplaces.git] / filematch.c
index 997378757cc6b898ffc8073aa4e41e52918c4feb..f75ba870b7fc986cec876acd31abea40b99bc9aa 100644 (file)
@@ -132,7 +132,7 @@ void listdirectory(stringlist_t *list, const char *path)
        // ask for the directory listing handle
        hFile = _findfirst(pattern, &n_file);
        if(hFile == -1)
-               return NULL;
+               return;
        // start a new chain with the the first name
        stringlistappend(list, n_file.name);
        // iterate through the directory