billiob pushed a commit to branch master.

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

commit 1a7df68b84f5d56bb856d21231988674fe9971b8
Author: Boris Faure <[email protected]>
Date:   Sat Feb 15 23:09:32 2020 +0100

    win: test calloc()
    
    Closes CID1419432
---
 src/bin/win.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bin/win.c b/src/bin/win.c
index bf14dd4..fc93a0c 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -3313,6 +3313,9 @@ _tabs_mouse_down(
    Evas_Coord mx = 0, my = 0;
    Tab_Drag *tab_drag = calloc(1, sizeof(*tab_drag));
 
+   if (!tab_drag)
+     return;
+
    tab_drag->e = evas_object_evas_get(term->bg);
    evas_pointer_canvas_xy_get(tab_drag->e, &mx, &my);
 

-- 


Reply via email to