1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-27 11:55:06 +00:00

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

Reported by:	Coverity
CID:		1007335
MFC after:	3 days
This commit is contained in:
Baptiste Daroussin 2016-04-20 20:54:47 +00:00
parent c935e51525
commit 89afcfedb6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298369

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
{