summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/atrun.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-23 19:18:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-23 19:18:53 +0000
commit4947a06394b98c42d247177ca1f03bdbf7f4421f (patch)
treeba1000d26e25c676198ddf0a64da1b053979c865 /usr.sbin/cron/atrun.c
parent20d81826eb388e54f2b5452bd0b8cb76a4d21173 (diff)
remove redundant check, and be a bit more careful about queue naming
discussion with jca ok millert guenther
Diffstat (limited to 'usr.sbin/cron/atrun.c')
-rw-r--r--usr.sbin/cron/atrun.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/cron/atrun.c b/usr.sbin/cron/atrun.c
index cc2418a8c67..79e36877c68 100644
--- a/usr.sbin/cron/atrun.c
+++ b/usr.sbin/cron/atrun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atrun.c,v 1.19 2013/04/17 15:58:45 deraadt Exp $ */
+/* $OpenBSD: atrun.c,v 1.20 2013/11/23 19:18:52 deraadt Exp $ */
/*
* Copyright (c) 2002-2003 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -96,9 +96,7 @@ scan_atjobs(at_db *old_db, struct timeval *tv)
continue;
if (ep[0] != '.' || !isalpha((unsigned char)ep[1]))
continue;
- queue = ep[1];
- if (!isalpha(queue))
- continue;
+ queue = (unsigned char)ep[1];
job = (atjob *)malloc(sizeof(*job));
if (job == NULL) {