summaryrefslogtreecommitdiff
path: root/source/sys_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/sys_unix.c')
-rw-r--r--source/sys_unix.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/sys_unix.c b/source/sys_unix.c
index 8596ef7..b7e88d0 100644
--- a/source/sys_unix.c
+++ b/source/sys_unix.c
@@ -1012,11 +1012,8 @@ char **Sys_ListFiles( const char *path, const char *extension,
}
}
- if( extension ) {
- s = COM_FileExtension( findInfo->d_name );
- if( !FS_ExtCmp( extension, s ) ) {
- continue;
- }
+ if( extension && !FS_ExtCmp( extension, findInfo->d_name ) ) {
+ continue;
}
if( flags & FS_SEARCH_SAVEPATH ) {