diff --git a/src/i_glob.c b/src/i_glob.c index a0fe08da..31dbf9e1 100644 --- a/src/i_glob.c +++ b/src/i_glob.c @@ -234,7 +234,7 @@ static char *NextGlob(glob_t *glob) || !MatchesAnyGlob(de->d_name, glob)); // Return the fully-qualified path, not just the bare filename. - return M_StringJoin(glob->directory, DIR_SEPARATOR_S, de->d_name, NULL); + return M_StringJoin(glob->directory, DIR_SEPARATOR_S, de->d_name); } static void ReadAllFilenames(glob_t *glob)