diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-03-26 22:49:24 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-03-26 22:49:24 +0000 |
commit | 51599432e71397bd74e8a773fd5ffa25246f6df5 (patch) | |
tree | b3d205750a6a0e7b0433068107fa3160cb6314c1 /tap-diameter-avp.c | |
parent | 32e955621b5e64d88e6be9442f0dae456bfd07b3 (diff) |
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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32301 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tap-diameter-avp.c')
-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]); |