summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2017-07-27 20:01:06 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2017-07-27 20:01:06 +0000
commitfe1d8dfa1495524739a8839f9e1b0f8a5bf67815 (patch)
tree12ae76fe0243a631e9b755c1c7887f8aaf11e78b
parent9315a0a45da0ef2f9541a9275b11f72d813aad6a (diff)
An array is never NULL; pointed out by clang.
OK deraadt
-rw-r--r--usr.bin/bgplg/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/bgplg/misc.c b/usr.bin/bgplg/misc.c
index 38837cc88c8..aecefaf2fa5 100644
--- a/usr.bin/bgplg/misc.c
+++ b/usr.bin/bgplg/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.6 2013/11/25 18:02:50 deraadt Exp $ */
+/* $OpenBSD: misc.c,v 1.7 2017/07/27 20:01:05 florian Exp $ */
/*
* Copyright (c) 2005, 2006 Reyk Floeter <reyk@openbsd.org>
@@ -51,7 +51,7 @@ lg_checkperm(struct cmd *cmd)
struct stat stbuf;
/* No external command to execute, this is always valid */
- if (cmd->earg == NULL || cmd->earg[0] == NULL)
+ if (cmd->earg[0] == NULL)
return (1);
/*