diff options
author | Gerald Combs <gerald@wireshark.org> | 2005-04-18 16:16:57 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2005-04-18 16:16:57 +0000 |
commit | 7a412fadf3338974c9e3257a97e68af806628fae (patch) | |
tree | 0b2efd63e09e8c98a4573b99848c3ee32d8a0084 /epan/value_string.c | |
parent | cb95a1d8423a56bafa33152e6271185874acf259 (diff) | |
download | wireshark-7a412fadf3338974c9e3257a97e68af806628fae.tar.gz wireshark-7a412fadf3338974c9e3257a97e68af806628fae.tar.bz2 wireshark-7a412fadf3338974c9e3257a97e68af806628fae.zip |
Force the "fmt" argument of val_to_str() to be non-null. Change the 9P
dissector to use a non-null format. Fixes bug 70.
Fix the line endings in the 9P dissector, and set its SVN properties.
svn path=/trunk/; revision=14127
Diffstat (limited to 'epan/value_string.c')
-rw-r--r-- | epan/value_string.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/value_string.c b/epan/value_string.c index 9aa5858a66..f2e6b96147 100644 --- a/epan/value_string.c +++ b/epan/value_string.c @@ -44,6 +44,8 @@ val_to_str(guint32 val, const value_string *vs, const char *fmt) { static gchar str[3][64]; static gchar *cur; + g_assert(fmt != NULL); + ret = match_strval(val, vs); if (ret != NULL) return ret; |