diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-03-26 22:49:24 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-03-26 22:49:24 +0000 |
commit | 6e8ddafc03c4428d33e5542f06f75f6b9e462f91 (patch) | |
tree | b3d205750a6a0e7b0433068107fa3160cb6314c1 | |
parent | f55452dd773053265d67357eeff35e7732752de8 (diff) | |
download | wireshark-6e8ddafc03c4428d33e5542f06f75f6b9e462f91.tar.gz |
g_strv_length() is only available in GLib 2.6 and later, and we don't
require GLib 2.6, just 2.4 or later.
svn path=/trunk/; revision=32301
-rw-r--r-- | tap-diameter-avp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tap-diameter-avp.c b/tap-diameter-avp.c index c602d71b8e..b65f108877 100644 --- a/tap-diameter-avp.c +++ b/tap-diameter-avp.c @@ -246,7 +246,9 @@ diameteravp_init(const char *optarg, void* userdata _U_) /* Split command line options. */ tokens = g_strsplit(optarg,",", 1024); - opt_count=g_strv_length(tokens); + opt_count=0; + while (tokens[opt_count]) + opt_count++; if (opt_count>2) ds->cmd_code=(guint32)atoi(tokens[2]); |