From 270e2a76a8347cc068042bd5416b735f7f9734bf Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 4 Dec 2022 05:20:19 +0300 Subject: [PATCH] engine: soundlib: simplify string operation --- engine/common/soundlib/snd_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/common/soundlib/snd_main.c b/engine/common/soundlib/snd_main.c index 94b4ff9d..bd32b8d4 100644 --- a/engine/common/soundlib/snd_main.c +++ b/engine/common/soundlib/snd_main.c @@ -66,7 +66,7 @@ wavdata_t *FS_LoadSound( const char *filename, const byte *buffer, size_t size ) Sound_Reset(); // clear old sounddata Q_strncpy( loadname, filename, sizeof( loadname )); - if( Q_stricmp( ext, "" )) + if( COM_CheckStringEmpty( ext )) { // we needs to compare file extension with list of supported formats // and be sure what is real extension, not a filename with dot @@ -155,7 +155,7 @@ stream_t *FS_OpenStream( const char *filename ) Sound_Reset(); // clear old streaminfo Q_strncpy( loadname, filename, sizeof( loadname )); - if( Q_stricmp( ext, "" )) + if( COM_CheckStringEmpty( ext )) { // we needs to compare file extension with list of supported formats // and be sure what is real extension, not a filename with dot