Fix typo: actually test the return of strchr(3)

Reported by:	Coverity
CID:		1007335
MFC after:	3 days
This commit is contained in:
bapt 2016-04-20 20:54:47 +00:00
parent 5f2b047022
commit 499f728f92

View File

@ -351,7 +351,7 @@ writefile(time_t runtimer, char queue)
char *eqp;
eqp = strchr(*atenv, '=');
if (ap == NULL)
if (eqp == NULL)
eqp = *atenv;
else
{