diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-09-20 16:59:47 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-09-20 16:59:47 +0200 |
commit | 4ece2db62946aee939e7319695acc86731b14445 (patch) | |
tree | 3d3d502528d6376a226d6e0c187233b0b3bde9da /src/core | |
parent | 324963dc4c69040046c96906363b03d33d8da47d (diff) | |
download | weechat-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.c | 3 |
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; |