From ae83ba896ac31291e39bcb04b40217c7c6a29f96 Mon Sep 17 00:00:00 2001 From: gad Date: Thu, 12 Jun 2003 03:30:10 +0000 Subject: When sanity-checking a variable, it's good to check the correct variable... MFC after: 1 week --- usr.sbin/lpr/common_source/ctlinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/lpr') diff --git a/usr.sbin/lpr/common_source/ctlinfo.c b/usr.sbin/lpr/common_source/ctlinfo.c index 3e704f2..78b1de7 100644 --- a/usr.sbin/lpr/common_source/ctlinfo.c +++ b/usr.sbin/lpr/common_source/ctlinfo.c @@ -563,7 +563,7 @@ ctl_renametf(const char *ptrname, const char *tfname) if (cjinf->cji_mailto == NULL) nogood = 1; else { - for (cp = cjinf->cji_acctuser; *cp != '\0'; cp++) { + for (cp = cjinf->cji_mailto; *cp != '\0'; cp++) { if (*cp <= ' ') { nogood = 1; break; -- cgit v1.1