summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-04 19:56:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-04 19:56:36 +0000
commit6e127ea54ea1c584a972ab313d0e66f6e0f8fe55 (patch)
tree0b6a83eaca2fd48d527b1470aed13cc62d3e5e94 /usr.sbin
parentf542b03e75c6d63abe8973f236af3ceb3203a2aa (diff)
with small quantities of beer and pizza i produce fewer bugs. really.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/config/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c
index fac6906f97f..2d770c08f18 100644
--- a/usr.sbin/config/main.c
+++ b/usr.sbin/config/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.11 1997/04/04 19:54:29 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.12 1997/04/04 19:56:35 deraadt Exp $ */
/* $NetBSD: main.c,v 1.18 1996/08/31 20:58:20 mycroft Exp $ */
/*
@@ -583,11 +583,11 @@ optcmp(sp1, sp2)
r = strcmp(sp1->name, sp2->name);
if (r == 0) {
- if (!sp1 && !sp2)
- r = 0;
- else if (sp1 && !sp2)
+ if (!sp1->val && !sp2->val)
+ r = 0;
+ else if (sp1->val && !sp2->val)
r = -1;
- else if (sp2 && !sp1)
+ else if (sp2->val && !sp1->val)
r = 1;
else r = strcmp(sp1->val, sp2->val);
}