diff options
author | Pablo Barciela <[email protected]> | 2019-03-31 01:32:08 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-19 23:17:37 +0200 |
commit | a994d545695bd8935271dbbe69beb999bd6774ae (patch) | |
tree | 1d89a86f9667d2d028ebe35293fa8d6132e7123d /libcaja-private | |
parent | c69dadbb98f2651abf8ee458246b762fc51d73ce (diff) | |
download | caja-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
Diffstat (limited to 'libcaja-private')
-rw-r--r-- | libcaja-private/caja-icon-canvas-item.c | 2 |
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; |