summaryrefslogtreecommitdiff
path: root/eel/eel-canvas.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-03 02:20:43 +0100
committerZenWalker <[email protected]>2019-03-06 23:59:47 +0100
commitee16c212d5ce11f6d782f86bb62302356b163462 (patch)
tree7c5df2323db10b5a2f38f5f19cc6002aeee93d61 /eel/eel-canvas.c
parent38bee9f955202c802bbf5972f20533d09ebd2d5b (diff)
downloadcaja-ee16c212d5ce11f6d782f86bb62302356b163462.tar.bz2
caja-ee16c212d5ce11f6d782f86bb62302356b163462.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/eel-canvas.c')
-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;