Don't col_clear() followed by col_set_str(). A col_set_str() will clear (replace...
[obnox/wireshark/wip.git] / epan / column-utils.c
index b61d5de78d416454b76b24a7ae8464a83e0ac82f..f331e598b670d1c0d52d85ddeef6e7b464517469 100644 (file)
@@ -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.