aboutsummaryrefslogtreecommitdiffstats
path: root/epan/column-utils.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2011-03-31 17:27:48 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2011-03-31 17:27:48 +0000
commit8f429fd919ccf4b1364c8cf67cd931d6befd115b (patch)
treeac7f6a85f4b1831be65b6f9ade9b721b81d55fbb /epan/column-utils.c
parentb92bf3b06c260497e2046a06e5dfb89afedcec66 (diff)
separator will never be NULL, but sep_len could be 0, so test for that instead.
Fixes CID 620. svn path=/trunk/; revision=36423
Diffstat (limited to 'epan/column-utils.c')
-rw-r--r--epan/column-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/column-utils.c b/epan/column-utils.c
index e21b236bc7..83e60718e9 100644
--- a/epan/column-utils.c
+++ b/epan/column-utils.c
@@ -329,7 +329,7 @@ col_append_sep_fstr(column_info *cinfo, const gint el, const gchar *separator,
/*
* If we have a separator, append it if the column isn't empty.
*/
- if (separator != NULL) {
+ if (sep_len != 0) {
if (len != 0) {
g_strlcat(cinfo->col_buf[i], separator, max_len);
len += sep_len;