summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 09:59:59 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 10:37:44 +0900
commitd6785cfeb680be756875c73d038004d0f4ab65f1 (patch)
tree98afefd2d560acf26e57c10ae998b913f1511bb8
parent53629e2fd2eda8675a44f22d1df65db606baa035 (diff)
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
-rw-r--r--src/lib/eina/eina_debug.c1
1 files changed, 1 insertions, 0 deletions
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 *
437_session_create(int fd) 437_session_create(int fd)
438{ 438{
439 Eina_Debug_Session *session = calloc(1, sizeof(*session)); 439 Eina_Debug_Session *session = calloc(1, sizeof(*session));
440 if (!session) return NULL;
440 session->dispatch_cb = eina_debug_dispatch; 441 session->dispatch_cb = eina_debug_dispatch;
441 session->fd = fd; 442 session->fd = fd;
442 // start the monitor thread 443 // start the monitor thread