1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

Fix crash on /upgrade when upgrade file is not found

This commit is contained in:
Sebastien Helleu
2010-09-20 16:59:47 +02:00
parent 324963dc4c
commit 4ece2db629
+3
View File
@@ -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;