summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-10-16 02:29:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-10-16 02:29:55 +0000
commit0ec39a2c48c082ece0745acc54dcd78a8f6206e0 (patch)
tree2811f680eb495c764c5b6189884b8dd65074158d /sbin
parent7645a4f07c7dd4577ddc84b373d9ea66b8edc9b9 (diff)
only help if possible
Diffstat (limited to 'sbin')
-rw-r--r--sbin/fdisk/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fdisk/misc.c b/sbin/fdisk/misc.c
index f5d87ec2e33..a101986eda0 100644
--- a/sbin/fdisk/misc.c
+++ b/sbin/fdisk/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.3 1997/10/16 01:47:11 deraadt Exp $ */
+/* $OpenBSD: misc.c,v 1.4 1997/10/16 02:29:54 deraadt Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -88,7 +88,7 @@ again:
errx(1, "eof");
lbuf[strlen(lbuf)-1] = '\0';
- if (lbuf[0] == '?') {
+ if (help && lbuf[0] == '?') {
(*help)();
goto again;
}