From 1f0d745be8d38736abe1b378bb45bffae8de3563 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 4 Apr 1997 19:56:35 +0000 Subject: [PATCH] with small quantities of beer and pizza i produce fewer bugs. really. --- usr.sbin/config/main.c | 10 +++++----- 1 file 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); } -- 2.20.1