summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-09-20 16:59:47 +0200
committerSebastien Helleu <flashcode@flashtux.org>2010-09-20 16:59:47 +0200
commit4ece2db62946aee939e7319695acc86731b14445 (patch)
tree3d3d502528d6376a226d6e0c187233b0b3bde9da /src/core
parent324963dc4c69040046c96906363b03d33d8da47d (diff)
downloadweechat-4ece2db62946aee939e7319695acc86731b14445.zip
Fix crash on /upgrade when upgrade file is not found
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-upgrade-file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/wee-upgrade-file.c b/src/core/wee-upgrade-file.c
index 813bc7d1a..9fd024002 100644
--- a/src/core/wee-upgrade-file.c
+++ b/src/core/wee-upgrade-file.c
@@ -698,6 +698,9 @@ upgrade_file_read (struct t_upgrade_file *upgrade_file,
{
char *signature;
+ if (!upgrade_file)
+ return 0;
+
upgrade_file->callback_read = callback_read;
upgrade_file->callback_read_data = callback_read_data;