Removed "comparing an array to null", with no effect.

Coverity 534.

svn path=/trunk/; revision=36281
This commit is contained in:
Stig Bjørlykke 2011-03-23 07:31:17 +00:00
parent 0ae643e27d
commit e8e4bff8ee
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);
}