summaryrefslogtreecommitdiff
path: root/usr.sbin/config/ukcutil.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-12-10 23:15:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-12-10 23:15:35 +0000
commitd9bad47758857d3344bedc12dff936f73958442f (patch)
treea728dd9359b9410a284a116dc53fa5ab4ecdebcf /usr.sbin/config/ukcutil.c
parent5eddaf34932497c0e412ccdc4a359fe4005a4f14 (diff)
handle "q" input better; bug reported in 2244
Diffstat (limited to 'usr.sbin/config/ukcutil.c')
-rw-r--r--usr.sbin/config/ukcutil.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/config/ukcutil.c b/usr.sbin/config/ukcutil.c
index 7a596d92c36..acb76d4222b 100644
--- a/usr.sbin/config/ukcutil.c
+++ b/usr.sbin/config/ukcutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ukcutil.c,v 1.7 2001/12/05 10:11:23 deraadt Exp $ */
+/* $OpenBSD: ukcutil.c,v 1.8 2001/12/10 23:15:34 deraadt Exp $ */
/*
* Copyright (c) 1999-2001 Mats O Jansson. All rights reserved.
@@ -30,7 +30,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ukcutil.c,v 1.7 2001/12/05 10:11:23 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ukcutil.c,v 1.8 2001/12/10 23:15:34 deraadt Exp $";
#endif
#include <sys/types.h>
@@ -1005,6 +1005,8 @@ add_read(prompt, field, dev, len, val)
struct cfdata *cd;
struct cfdriver *cdrv;
+ *val = -1;
+
while (!ok) {
printf("%s ? ", prompt);
fflush(stdout);