aboutsummaryrefslogtreecommitdiffstats
path: root/epan/gcp.c
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2007-03-28 19:34:35 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2007-03-28 19:34:35 +0000
commit32780e71e8ce8c8fd1898cbcb62f6bc8a59341f3 (patch)
tree952592025a7b833134605975bf0c878d85a7cfce /epan/gcp.c
parent359c840dfb22d6526b4c48d7bc0bf172f76c6c4b (diff)
do not pass a null string to proto_item_append_text()
svn path=/trunk/; revision=21252
Diffstat (limited to 'epan/gcp.c')
-rw-r--r--epan/gcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/gcp.c b/epan/gcp.c
index 5ffe6a04b5..84553a22a4 100644
--- a/epan/gcp.c
+++ b/epan/gcp.c
@@ -676,7 +676,7 @@ void gcp_analyze_msg(proto_tree* gcp_tree, tvbuff_t* gcp_tvb, gcp_msg_t* m, gcp_
for (c = ctx->cmds; c; c = c->next) {
proto_item* cmd_item = proto_tree_add_uint(history_tree,ids->hf.ctx_cmd,gcp_tvb,0,0,c->cmd->msg->framenum);
- proto_item_append_text(cmd_item," %s ",c->cmd->str);
+ if (c->cmd->str) proto_item_append_text(cmd_item," %s ",c->cmd->str);
PROTO_ITEM_SET_GENERATED(cmd_item);
if (c->cmd->error) {
proto_item_set_expert_flags(cmd_item, PI_RESPONSE_CODE, PI_WARN);