summaryrefslogtreecommitdiff
path: root/src/core/wee-upgrade.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-03-29 07:35:39 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-03-29 07:35:39 +0100
commit5dbda28263c2b772e468b2a891ce8650eef932ba (patch)
tree5c5ce37ea59c92f6b72b0ffc19bfae1669944fab /src/core/wee-upgrade.c
parentfe512fdd33855cab3f4034f648ebc5221db8cdd5 (diff)
downloadweechat-5dbda28263c2b772e468b2a891ce8650eef932ba.zip
core: fix uninitialized variable when saving layout for windows in upgrade
Diffstat (limited to 'src/core/wee-upgrade.c')
-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);