summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-03 02:20:43 +0100
committermonsta <[email protected]>2019-07-23 15:49:29 +0300
commitc5f3d9664fcfd1d476d57eae3364a91d72043d57 (patch)
treee8f80ea03b693fe4d77195e61d494e6094db3585 /eel
parentcb23ee025b4edd94a0e42cd2667ea6b07a60ac51 (diff)
downloadcaja-c5f3d9664fcfd1d476d57eae3364a91d72043d57.tar.bz2
caja-c5f3d9664fcfd1d476d57eae3364a91d72043d57.tar.xz
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; ^~~~~~~~~~~
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-canvas.c2
1 files changed, 1 insertions, 1 deletions
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;