mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 12:41:21 +00:00
Remove superfluous statements.
`while (*s != '\\' && *s)` already checks for `s` being valid. This was reported by @m-x-d, closes #401.
This commit is contained in:
parent
c0d45ece57
commit
8e779bfb87
1 changed files with 0 additions and 10 deletions
|
@ -1242,11 +1242,6 @@ Info_ValueForKey(char *s, char *key)
|
|||
|
||||
while (*s != '\\' && *s)
|
||||
{
|
||||
if (!*s)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
*o++ = *s++;
|
||||
}
|
||||
|
||||
|
@ -1307,11 +1302,6 @@ Info_RemoveKey(char *s, char *key)
|
|||
|
||||
while (*s != '\\' && *s)
|
||||
{
|
||||
if (!*s)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
*o++ = *s++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue