raster pushed a commit to branch master.

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

commit d6785cfeb680be756875c73d038004d0f4ab65f1
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sat Jul 29 09:59:59 2017 +0900

    eina debug - if calloc for session struct failed - return NULL
    
    makes analysers happy but really doesnt change anything - moves the
    abort/crash/exit somewhere else.
    
    found by PVS studio
---
 src/lib/eina/eina_debug.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/eina/eina_debug.c b/src/lib/eina/eina_debug.c
index 9df67f3f49..692a2ed738 100644
--- a/src/lib/eina/eina_debug.c
+++ b/src/lib/eina/eina_debug.c
@@ -437,6 +437,7 @@ static Eina_Debug_Session *
 _session_create(int fd)
 {
    Eina_Debug_Session *session = calloc(1, sizeof(*session));
+   if (!session) return NULL;
    session->dispatch_cb = eina_debug_dispatch;
    session->fd = fd;
    // start the monitor thread

-- 


Reply via email to