fix compiler complaint

a check for baselen being less than or equal to zero drew a compiler
complaint because the variable is unsigned
This commit is contained in:
nhmall
2023-05-15 23:14:26 -04:00
parent 420048b8d3
commit d7f581d8ad

View File

@@ -2084,7 +2084,7 @@ base_soundname_to_filename(
consumes += 1; /* for trailing NUL */
/* existinglen could be >= bufsz if caller didn't initialize buf
* to properly include a trailing NUL */
if (baselen <= 0 || consumes > bufsz || existinglen >= bufsz)
if (!baselen || consumes > bufsz || existinglen >= bufsz)
return (char *) 0;
#if 0