summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-31 01:32:08 +0100
committermonsta <[email protected]>2019-07-23 16:19:41 +0300
commitcd14d61be16ab05f64d7639ffaf586361ba8c4a7 (patch)
tree0b5441db0a1819a5d769e910af5625898c3c45dd
parentfb212b53d8608dc8416766c65233e74c7af388ce (diff)
downloadcaja-cd14d61be16ab05f64d7639ffaf586361ba8c4a7.tar.bz2
caja-cd14d61be16ab05f64d7639ffaf586361ba8c4a7.tar.xz
caja-icon-canvas-item: initialize variable 'scale'
Fixes cppcheck warning: [libcaja-private/caja-icon-canvas-item.c:517]: (error) Uninitialized variable: scale
-rw-r--r--libcaja-private/caja-icon-canvas-item.c2
1 files changed, 1 insertions, 1 deletions
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;