summaryrefslogtreecommitdiff
path: root/epan/value_string.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-04-18 16:16:57 +0000
committerGerald Combs <gerald@wireshark.org>2005-04-18 16:16:57 +0000
commit7a412fadf3338974c9e3257a97e68af806628fae (patch)
tree0b2efd63e09e8c98a4573b99848c3ee32d8a0084 /epan/value_string.c
parentcb95a1d8423a56bafa33152e6271185874acf259 (diff)
downloadwireshark-7a412fadf3338974c9e3257a97e68af806628fae.tar.gz
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.c2
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;