summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2017-07-27 20:01:05 +0000
committerflorian <florian@openbsd.org>2017-07-27 20:01:05 +0000
commit6020324c055f7a2c55a83ce18d6958da34cfefd6 (patch)
treea21fe1bd2176f287589c1cd014be839950ead323
parentuint32_t is never < 0; pointed out by clang. (diff)
downloadwireguard-openbsd-6020324c055f7a2c55a83ce18d6958da34cfefd6.tar.xz
wireguard-openbsd-6020324c055f7a2c55a83ce18d6958da34cfefd6.zip
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);
/*