Fix typo: actually test the return of strchr(3)
Reported by: Coverity CID: 1007335 MFC after: 3 days
This commit is contained in:
parent
5f2b047022
commit
499f728f92
@ -351,7 +351,7 @@ writefile(time_t runtimer, char queue)
|
||||
char *eqp;
|
||||
|
||||
eqp = strchr(*atenv, '=');
|
||||
if (ap == NULL)
|
||||
if (eqp == NULL)
|
||||
eqp = *atenv;
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user