seoz pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=f5df6ce99dcec3409946c086ab8fc5d44fecef0f

commit f5df6ce99dcec3409946c086ab8fc5d44fecef0f
Author: Daniel Juyung Seo <seojuyu...@gmail.com>
Date:   Fri Nov 8 08:13:37 2013 +0900

    termptyesc: removed unnecessary null check for free.
    
    This fixes coverity CID 1100643.
---
 src/bin/termptyesc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 8ce462e..337974a 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1139,7 +1139,7 @@ _handle_esc_terminology(Termpty *ty, const Eina_Unicode 
*c, const Eina_Unicode *
         if (ty->cb.command.func) ty->cb.command.func(ty->cb.command.data);
      }
    ty->cur_cmd = NULL;
-   if (s) free(s);
+   free(s);
    if (buf != bufsmall) free(buf);
    return cc - c;
 }

-- 


Reply via email to