svn commit: r298369 - head/usr.bin/at
Baptiste Daroussin
bapt at FreeBSD.org
Wed Apr 20 20:54:48 UTC 2016
Author: bapt
Date: Wed Apr 20 20:54:47 2016
New Revision: 298369
URL: https://svnweb.freebsd.org/changeset/base/298369
Log:
Fix typo: actually test the return of strchr(3)
Reported by: Coverity
CID: 1007335
MFC after: 3 days
Modified:
head/usr.bin/at/at.c
Modified: head/usr.bin/at/at.c
==============================================================================
--- head/usr.bin/at/at.c Wed Apr 20 20:48:54 2016 (r298368)
+++ head/usr.bin/at/at.c Wed Apr 20 20:54:47 2016 (r298369)
@@ -351,7 +351,7 @@ writefile(time_t runtimer, char queue)
char *eqp;
eqp = strchr(*atenv, '=');
- if (ap == NULL)
+ if (eqp == NULL)
eqp = *atenv;
else
{
More information about the svn-src-head
mailing list