From 055a2c6a64b6a96422b7c8e457789771d433576f Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Mon, 26 Jun 2006 18:42:16 +0000 Subject: Fixed crash with crash dump (nice isn't it?) --- src/common/completion.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/completion.c b/src/common/completion.c index a6ddb732a..836d96bf3 100644 --- a/src/common/completion.c +++ b/src/common/completion.c @@ -54,13 +54,19 @@ completion_init (t_completion *completion, void *server, void *channel) completion->base_command = NULL; completion->base_command_arg = 0; completion->arg_is_nick = 0; - completion->position = -1; completion->base_word = NULL; + completion->base_word_pos = 0; + completion->position = -1; completion->args = NULL; completion->direction = 0; completion->completion_list = NULL; completion->last_completion = NULL; + + completion->word_found = NULL; + completion->position_replace = 0; + completion->diff_size = 0; + completion->diff_length = 0; } /* -- cgit v1.2.3