summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-31 01:32:08 +0100
committerraveit65 <[email protected]>2022-07-19 23:17:37 +0200
commita994d545695bd8935271dbbe69beb999bd6774ae (patch)
tree1d89a86f9667d2d028ebe35293fa8d6132e7123d
parentc69dadbb98f2651abf8ee458246b762fc51d73ce (diff)
downloadcaja-a994d545695bd8935271dbbe69beb999bd6774ae.tar.bz2
caja-a994d545695bd8935271dbbe69beb999bd6774ae.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 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;