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:
stig 2011-03-23 07:31:17 +00:00
parent 40950c6323
commit 00a0ec838d
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}