diff options
author | Pablo Barciela <[email protected]> | 2019-03-31 01:32:08 +0100 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-04-08 22:04:45 +0200 |
commit | e5e010e6a0c1d81041ff45931551a28ba83637b7 (patch) | |
tree | 5a4ffdf675b4ab92f91fcb73de4c1df3a8f6da35 /libcaja-private/caja-icon-canvas-item.c | |
parent | 830bf0b35622d68eb495bb66410a67386ca41af2 (diff) | |
download | caja-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/caja-icon-canvas-item.c')
-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; |