From a994d545695bd8935271dbbe69beb999bd6774ae Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sun, 31 Mar 2019 01:32:08 +0100 Subject: caja-icon-canvas-item: initialize variable 'scale' Fixes cppcheck warning: [libcaja-private/caja-icon-canvas-item.c:517]: (error) Uninitialized variable: scale --- libcaja-private/caja-icon-canvas-item.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcaja-private') diff --git a/libcaja-private/caja-icon-canvas-item.c b/libcaja-private/caja-icon-canvas-item.c index 887caddc..155fa788 100644 --- a/libcaja-private/caja-icon-canvas-item.c +++ b/libcaja-private/caja-icon-canvas-item.c @@ -505,7 +505,7 @@ get_scaled_icon_size (CajaIconCanvasItem *item, { EelCanvas *canvas; GdkPixbuf *pixbuf = NULL; - gint scale; + gint scale = 1; if (item != NULL) { canvas = EEL_CANVAS_ITEM (item)->canvas; -- cgit v1.2.1