forked from osmocom/wireshark
Removed "comparing an array to null", with no effect.
Coverity 534. svn path=/trunk/; revision=36281
This commit is contained in:
parent
0ae643e27d
commit
e8e4bff8ee
|
@ -412,7 +412,8 @@ static gchar* ph_capture_get_description(capture_file *cf)
|
|||
{
|
||||
gchar *buffer = NULL;
|
||||
|
||||
if(cf->finfo_selected->rep->representation != 0)
|
||||
if(cf->finfo_selected->rep &&
|
||||
strlen(cf->finfo_selected->rep->representation) > 0)
|
||||
{
|
||||
buffer = g_strdup(cf->finfo_selected->rep->representation);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue