1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 23:06:38 +02:00

Fixed crash after /upgrade if a line in history is empty

This commit is contained in:
Sebastien Helleu
2006-04-19 12:35:30 +00:00
parent 5af8e4f6e7
commit a56d65a7c0
4 changed files with 16 additions and 2 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2006-04-15
ChangeLog - 2006-04-19
Version 0.1.9 (under dev!):
* fixed crash after /upgrade if a line in history is empty
* fixed many crashes with DCC chat
* added new option to customize input prompt
* added nick modes
+6
View File
@@ -73,6 +73,9 @@ void
history_buffer_add (void *buffer, char *string)
{
t_history *new_history, *ptr_history;
if (!string)
return;
if ( !((t_gui_buffer *)(buffer))->history
|| ( ((t_gui_buffer *)(buffer))->history
@@ -121,6 +124,9 @@ history_global_add (char *string)
{
t_history *new_history, *ptr_history;
if (!string)
return;
if (!history_global
|| (history_global
&& ascii_strcasecmp (history_global->text, string) != 0))
+2 -1
View File
@@ -1,9 +1,10 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2006-04-15
ChangeLog - 2006-04-19
Version 0.1.9 (under dev!):
* fixed crash after /upgrade if a line in history is empty
* fixed many crashes with DCC chat
* added new option to customize input prompt
* added nick modes
+6
View File
@@ -73,6 +73,9 @@ void
history_buffer_add (void *buffer, char *string)
{
t_history *new_history, *ptr_history;
if (!string)
return;
if ( !((t_gui_buffer *)(buffer))->history
|| ( ((t_gui_buffer *)(buffer))->history
@@ -121,6 +124,9 @@ history_global_add (char *string)
{
t_history *new_history, *ptr_history;
if (!string)
return;
if (!history_global
|| (history_global
&& ascii_strcasecmp (history_global->text, string) != 0))