From 6477f1656eb5fa21fc85f0453323aa6181ebf07f Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 4 Dec 2022 05:20:32 +0300 Subject: [PATCH] filesystem: simplify string operation --- filesystem/wad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filesystem/wad.c b/filesystem/wad.c index b1b69ccb..bd1d90e4 100644 --- a/filesystem/wad.c +++ b/filesystem/wad.c @@ -120,7 +120,7 @@ static signed char W_TypeFromExt( const char *lumpname ) const wadtype_t *type; // we not known about filetype, so match only by filename - if( !Q_strcmp( ext, "*" ) || !Q_strcmp( ext, "" )) + if( !Q_strcmp( ext, "*" ) || !COM_CheckStringEmpty( ext )) return TYP_ANY; for( type = wad_types; type->ext; type++ )