From b1f0684083492c921c24e2040d0d90621c0aef39 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Sun, 8 Sep 2024 13:53:41 +0700 Subject: [PATCH] fix M_StringJoin --- src/i_glob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)