Removed duplicated NULL pointer checks.

This commit is contained in:
Armin Novak 2015-03-27 11:42:49 +01:00 committed by Bernhard Miklautz
parent d50ce6bd7a
commit b1edaf677b
1 changed files with 3 additions and 3 deletions

View File

@ -353,7 +353,7 @@ int WLog_ParseFilter(wLogFilter* filter, LPCSTR name)
while ((p = strchr(p, '.')) != NULL)
{
if (p[0] && count < filter->NameCount)
if (count < filter->NameCount)
filter->Names[count++] = p + 1;
*p = '\0';
p++;
@ -409,7 +409,7 @@ int WLog_ParseFilters()
while ((p = strchr(p, ',')) != NULL)
{
if (p[0] && (count < g_FilterCount))
if (count < g_FilterCount)
strs[count++] = p + 1;
*p = '\0';
p++;
@ -515,7 +515,7 @@ int WLog_ParseName(wLog* log, LPCSTR name)
while ((p = strchr(p, '.')) != NULL)
{
if (p[0] && (count < log->NameCount))
if (count < log->NameCount)
log->Names[count++] = p + 1;
*p = '\0';
p++;