aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-07-02 15:47:52 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-07-02 15:47:52 +0000
commit3483e85f6bdeaacb24c9170c0ee0851eeb32f0f6 (patch)
tree2055116331bf71a9a051224b6b1e489d4ef18004 /networking
parent10aea3e84e2715fb2a4b265faac273d11e8116ef (diff)
downloadbusybox-3483e85f6bdeaacb24c9170c0ee0851eeb32f0f6.tar.gz
ping: fix non-fancy ping6
Diffstat (limited to 'networking')
-rw-r--r--networking/ping.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/ping.c b/networking/ping.c
index 6945abb4a..127474ccc 100644
--- a/networking/ping.c
+++ b/networking/ping.c
@@ -179,7 +179,8 @@ int ping_main(int argc, char **argv)
len_and_sockaddr *lsa;
#if ENABLE_PING6
sa_family_t af = AF_UNSPEC;
- while (++argv[0][0] == '-') {
+
+ while ((++argv)[0] && argv[0][0] == '-') {
if (argv[0][1] == '4') {
af = AF_INET;
continue;