Removed duplicated NULL pointer checks.
This commit is contained in:
parent
d50ce6bd7a
commit
b1edaf677b
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user