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:
@@ -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
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user