forked from osmocom/wireshark
Removed "comparing an array to null", with no effect.
Coverity 534. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36281 f5534014-38df-0310-8fa8-9805f1628bb7
This commit is contained in:
parent
40950c6323
commit
00a0ec838d
|
@ -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