diff options
author | Gerald Combs <gerald@wireshark.org> | 2011-02-18 19:46:05 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2011-02-18 19:46:05 +0000 |
commit | 3e13ddbadc947658f4f3bf67f8a06746f62519a5 (patch) | |
tree | 5fd3e5f20b20997378ab2e662761a9715c697a47 /gtk/packet_list_store.c | |
parent | 0e6aa74d5404c4fe8faa7137fe8db9d91783df2c (diff) |
Fix a few errors found by Clang scan-build.
svn path=/trunk/; revision=36002
Diffstat (limited to 'gtk/packet_list_store.c')
-rw-r--r-- | gtk/packet_list_store.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/packet_list_store.c b/gtk/packet_list_store.c index 3eccc9e1d1..4375837f0f 100644 --- a/gtk/packet_list_store.c +++ b/gtk/packet_list_store.c @@ -713,7 +713,7 @@ packet_list_change_record(PacketList *packet_list, guint row, gint col, column_i case COL_8021Q_VLAN_ID: case COL_EXPERT: case COL_FREQ_CHAN: - if (cinfo->col_data[col] != cinfo->col_buf[col]) { + if (cinfo->col_data[col] && cinfo->col_data[col] != cinfo->col_buf[col]) { /* This is a constant string, so we don't have to copy it */ record->fdata->col_text[col] = (gchar *) cinfo->col_data[col]; record->fdata->col_text_len[col] = (guint) strlen(record->fdata->col_text[col]); |