From cd14d61be16ab05f64d7639ffaf586361ba8c4a7 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(-) diff --git a/libcaja-private/caja-icon-canvas-item.c b/libcaja-private/caja-icon-canvas-item.c index b1c66822..71d56fc3 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