diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2010-07-21 09:47:24 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2010-07-21 09:47:24 +0000 |
commit | ab345f6bda29c3dc0f3f6e5ed999ad8ed9ad1d86 (patch) | |
tree | c7c5f7edc9aef1f59e0e5dc2787cc4101e425573 /epan/proto.c | |
parent | aa3ba1a1b5d1a1b2bc3b38e71f756c452bb1b7b3 (diff) | |
download | wireshark-ab345f6bda29c3dc0f3f6e5ed999ad8ed9ad1d86.tar.gz |
Fixed adding a boolean value as a custom column.
This is reported in bug 5039.
svn path=/trunk/; revision=33602
Diffstat (limited to 'epan/proto.c')
-rw-r--r-- | epan/proto.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/proto.c b/epan/proto.c index 343df38abb..c4024ea2e7 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -3582,12 +3582,15 @@ proto_custom_set(proto_tree* tree, const int field_id, gchar *result, switch(hfinfo->type) { + case FT_BOOLEAN: + g_snprintf(expr, size, "%u", fvalue_get_uinteger(&finfo->value) ? 1 : 0); + break; + case FT_UINT8: case FT_UINT16: case FT_UINT24: case FT_UINT32: case FT_FRAMENUM: - case FT_BOOLEAN: g_snprintf(expr, size, hfinfo_numeric_value_format(hfinfo), fvalue_get_uinteger(&finfo->value)); break; |