summaryrefslogtreecommitdiff
path: root/src/caja-window.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-03 01:44:59 +0100
committerZenWalker <[email protected]>2019-03-06 23:59:14 +0100
commit38bee9f955202c802bbf5972f20533d09ebd2d5b (patch)
tree38ebc7741d1a162cb6ac2327c774f69016e2acff /src/caja-window.c
parentb26eff1f5c823c6eafbc24bb4552c071c41f34b7 (diff)
downloadcaja-38bee9f955202c802bbf5972f20533d09ebd2d5b.tar.bz2
caja-38bee9f955202c802bbf5972f20533d09ebd2d5b.tar.xz
caja-window: Fix garbage value
Fixes Clang static analyzer warning: caja-window.c:554:34: warning: The left operand of '<' is a garbage value MIN (default_width, ^ ~~~~~~~~~~~~~
Diffstat (limited to 'src/caja-window.c')
-rw-r--r--src/caja-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/caja-window.c b/src/caja-window.c
index 262e19f4..9983414e 100644
--- a/src/caja-window.c
+++ b/src/caja-window.c
@@ -539,7 +539,8 @@ caja_window_set_initial_window_geometry (CajaWindow *window)
GdkScreen *screen;
guint max_width_for_screen, max_height_for_screen;
- guint default_width, default_height;
+ guint default_width = 0;
+ guint default_height = 0;
screen = gtk_window_get_screen (GTK_WINDOW (window));