From c5f3d9664fcfd1d476d57eae3364a91d72043d57 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sun, 3 Mar 2019 02:20:43 +0100 Subject: eel-canvas: Fix warning: Undefined or garbage value returned to caller Fixes Clang static analyzer warning: eel-canvas.c:3426:9: warning: Undefined or garbage value returned to caller return item; ^~~~~~~~~~~ --- eel/eel-canvas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eel') diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c index c7e31f3e..5cdcc4db 100644 --- a/eel/eel-canvas.c +++ b/eel/eel-canvas.c @@ -3413,7 +3413,7 @@ eel_canvas_update_now (EelCanvas *canvas) EelCanvasItem * eel_canvas_get_item_at (EelCanvas *canvas, double x, double y) { - EelCanvasItem *item; + EelCanvasItem *item = NULL; double dist; int cx, cy; -- cgit v1.2.1