Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/traceroute6 CID 978587: Removed unnecessary check a...
details: https://anonhg.NetBSD.org/src/rev/434ab1d69efa
branches: trunk
changeset: 348952:434ab1d69efa
user: shm <shm%NetBSD.org@localhost>
date: Thu Nov 17 09:21:34 2016 +0000
description:
CID 978587: Removed unnecessary check against NULL.
diffstat:
usr.sbin/traceroute6/traceroute6.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r fd4db20ee339 -r 434ab1d69efa usr.sbin/traceroute6/traceroute6.c
--- a/usr.sbin/traceroute6/traceroute6.c Thu Nov 17 08:06:49 2016 +0000
+++ b/usr.sbin/traceroute6/traceroute6.c Thu Nov 17 09:21:34 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: traceroute6.c,v 1.43 2012/12/10 18:11:33 christos Exp $ */
+/* $NetBSD: traceroute6.c,v 1.44 2016/11/17 09:21:34 shm Exp $ */
/* $KAME: traceroute6.c,v 1.67 2004/01/25 03:24:39 itojun Exp $ */
/*
@@ -75,7 +75,7 @@
#else
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: traceroute6.c,v 1.43 2012/12/10 18:11:33 christos Exp $");
+__RCSID("$NetBSD: traceroute6.c,v 1.44 2016/11/17 09:21:34 shm Exp $");
#endif
#endif
@@ -569,7 +569,7 @@
ep = NULL;
errno = 0;
datalen = strtoul(*argv, &ep, 0);
- if (errno || !*argv || *ep)
+ if (errno || *ep)
errx(1, "Invalid packet length `%s'", *argv);
}
if (useicmp)
Home |
Main Index |
Thread Index |
Old Index