cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e83914d4963d6d16e398cccc227f4046a8725886

commit e83914d4963d6d16e398cccc227f4046a8725886
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Mon Jun 5 11:15:23 2017 -0700

    eina: silence gcc warning.
    
    Code is correct and won't lead to a case where size is > 0 and buffer
    isn't set, but gcc can't see the relation between both variable.
---
 src/lib/eina/eina_debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eina/eina_debug.c b/src/lib/eina/eina_debug.c
index ae0ac0f3c9..f2abf62925 100644
--- a/src/lib/eina/eina_debug.c
+++ b/src/lib/eina/eina_debug.c
@@ -535,7 +535,7 @@ _monitor(void *_data)
    // impact the application specifically
    for (;session;)
      {
-        unsigned char *buffer;
+        unsigned char *buffer = NULL;
         int size;
 
         size = _packet_receive(session, &buffer);

-- 


Reply via email to