termptyesc: fixed up wrong null check.

This solves coverity CID 1100642.
This commit is contained in:
Daniel Juyung Seo 2013-11-08 08:08:39 +09:00
parent a84841a078
commit e0bd4fd6f7
1 changed files with 1 additions and 1 deletions

View File

@ -1041,7 +1041,7 @@ _handle_esc_xterm(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
s = eina_unicode_unicode_to_utf8(&(buf[2]), &len);
if (ty->prop.title) eina_stringshare_del(ty->prop.title);
if (ty->prop.icon) eina_stringshare_del(ty->prop.icon);
if (b)
if (s)
{
ty->prop.title = eina_stringshare_add(s);
ty->prop.icon = eina_stringshare_add(s);