diff options
author | bapt <bapt@FreeBSD.org> | 2016-04-20 20:54:47 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2016-04-20 20:54:47 +0000 |
commit | 499f728f9200eaa479527b7af379aabb3d5bf86d (patch) | |
tree | 77c001db8263b7db1034966dda8313b87db95911 | |
parent | 5f2b047022be2956b9039b831af165302541106b (diff) | |
download | FreeBSD-src-499f728f9200eaa479527b7af379aabb3d5bf86d.zip FreeBSD-src-499f728f9200eaa479527b7af379aabb3d5bf86d.tar.gz |
Fix typo: actually test the return of strchr(3)
Reported by: Coverity
CID: 1007335
MFC after: 3 days
-rw-r--r-- | usr.bin/at/at.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c index 6e072d6..fec0df3 100644 --- a/usr.bin/at/at.c +++ b/usr.bin/at/at.c @@ -351,7 +351,7 @@ writefile(time_t runtimer, char queue) char *eqp; eqp = strchr(*atenv, '='); - if (ap == NULL) + if (eqp == NULL) eqp = *atenv; else { |