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:
Yamagi Burmeister 2019-05-30 11:11:29 +02:00
parent c0d45ece57
commit 8e779bfb87

View file

@ -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++;
}