Fix another && || confusion, from Kurt Schreiner, thanks!

This commit is contained in:
christos 2006-08-21 18:31:24 +00:00
parent 325cec31d4
commit ed6a70d32a
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.56 2006/08/17 22:23:07 christos Exp $ */
/* $NetBSD: main.c,v 1.57 2006/08/21 18:31:24 christos Exp $ */
/*
* Copyright (c) 1983, 1988, 1993
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993\n\
#if 0
static char sccsid[] = "from: @(#)main.c 8.4 (Berkeley) 3/1/94";
#else
__RCSID("$NetBSD: main.c,v 1.56 2006/08/17 22:23:07 christos Exp $");
__RCSID("$NetBSD: main.c,v 1.57 2006/08/21 18:31:24 christos Exp $");
#endif
#endif /* not lint */
@ -547,7 +547,7 @@ main(argc, argv)
}
#endif
if (!use_sysctl || (kvm_nlist(kvmd, nl) < 0 || nl[0].n_type == 0)) {
if (!use_sysctl && (kvm_nlist(kvmd, nl) < 0 || nl[0].n_type == 0)) {
if (nlistf)
errx(1, "%s: no namelist", nlistf);
else