Print the string to STDOUT regardless of the value of tree.

svn path=/trunk/; revision=24114
This commit is contained in:
Jaap Keuter 2008-01-16 18:39:32 +00:00
parent 511197bf71
commit 90674d7c9e
1 changed files with 2 additions and 3 deletions

View File

@ -887,11 +887,10 @@ proto_tree_add_debug_text(proto_tree *tree, const char *format, ...)
va_list ap;
pi = proto_tree_add_text_node(tree, NULL, 0, 0);
if (pi == NULL)
return(NULL);
va_start(ap, format);
proto_tree_set_representation(pi, format, ap);
if (pi)
proto_tree_set_representation(pi, format, ap);
vprintf(format, ap);
va_end(ap);
printf("\n");