Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/at Correct wrong variable being tested in env parsin...



details:   https://anonhg.NetBSD.org/src/rev/edf7c8d5993e
branches:  trunk
changeset: 485265:edf7c8d5993e
user:      mjl <mjl%NetBSD.org@localhost>
date:      Sun Apr 23 18:11:21 2000 +0000

description:
Correct wrong variable being tested in env parsing loop. Fixes
OpenBSD PR/1206.

diffstat:

 usr.bin/at/at.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 664a17bb305b -r edf7c8d5993e usr.bin/at/at.c
--- a/usr.bin/at/at.c   Sun Apr 23 17:51:21 2000 +0000
+++ b/usr.bin/at/at.c   Sun Apr 23 18:11:21 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: at.c,v 1.13 1999/05/22 05:05:11 jwise Exp $    */
+/*     $NetBSD: at.c,v 1.14 2000/04/23 18:11:21 mjl Exp $      */
 
 /*
  *  at.c : Put file into atrun queue
@@ -75,7 +75,7 @@
 #if 0
 static char rcsid[] = "$OpenBSD: at.c,v 1.15 1998/06/03 16:20:26 deraadt Exp $";
 #else
-__RCSID("$NetBSD: at.c,v 1.13 1999/05/22 05:05:11 jwise Exp $");
+__RCSID("$NetBSD: at.c,v 1.14 2000/04/23 18:11:21 mjl Exp $");
 #endif
 #endif
 
@@ -323,7 +323,7 @@
                char *eqp;
 
                eqp = strchr(*atenv, '=');
-               if (ap == NULL)
+               if (eqp == NULL)
                        eqp = *atenv;
                else {
                        int i;



Home | Main Index | Thread Index | Old Index