diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-09-23 14:30:36 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-09-23 14:30:36 +0000 |
commit | 99624329faf9404e969286ae665f47dfd1d626a8 (patch) | |
tree | f744e1b985106e6b12a9ec03be0038eca6bdf03e /epan/column-utils.c | |
parent | 7e06989ac36b2f307a1446a6355ff1799b33efce (diff) |
Don't col_clear() followed by col_set_str(). A col_set_str() will clear (replace) any existing string (the fence still needs to be respected though)
svn path=/trunk/; revision=30086
Diffstat (limited to 'epan/column-utils.c')
-rw-r--r-- | epan/column-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/column-utils.c b/epan/column-utils.c index b61d5de78d..f331e598b6 100644 --- a/epan/column-utils.c +++ b/epan/column-utils.c @@ -170,7 +170,7 @@ col_clear(column_info *cinfo, gint el) * we don't do anything. */ fence = cinfo->col_fence[i]; - if (fence == 0 || cinfo->col_buf[i] == cinfo->col_data[i]) { + if (cinfo->col_buf[i] == cinfo->col_data[i] || fence == 0) { /* * The fence isn't at the end of the column, or the column wasn't * last set with "col_set_str()", so clear the column out. |