summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-31 01:32:08 +0100
committerZenWalker <[email protected]>2019-04-08 22:04:45 +0200
commite5e010e6a0c1d81041ff45931551a28ba83637b7 (patch)
tree5a4ffdf675b4ab92f91fcb73de4c1df3a8f6da35 /libcaja-private
parent830bf0b35622d68eb495bb66410a67386ca41af2 (diff)
downloadcaja-e5e010e6a0c1d81041ff45931551a28ba83637b7.tar.bz2
caja-e5e010e6a0c1d81041ff45931551a28ba83637b7.tar.xz
caja-icon-canvas-item: initialize variable 'scale'
Fixes cppcheck warning: [libcaja-private/caja-icon-canvas-item.c:517]: (error) Uninitialized variable: scale
Diffstat (limited to 'libcaja-private')
-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;