summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/wee-upgrade.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/wee-upgrade.c b/src/core/wee-upgrade.c
index 927435950..44f19f12c 100644
--- a/src/core/wee-upgrade.c
+++ b/src/core/wee-upgrade.c
@@ -346,6 +346,8 @@ upgrade_weechat_save_layout_window (struct t_upgrade_file *upgrade_file)
struct t_gui_layout *ptr_layout;
int rc;
+ rc = 0;
+
/* get current layout for windows */
ptr_layout = gui_layout_alloc (GUI_LAYOUT_UPGRADE);