From 89b7a826c55454e8f2fb7ad8ecbbcf914275079c Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 23 Jun 2009 18:40:49 +0200 Subject: Fix display of description when it is NULL (with /help option) --- src/core/wee-command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 51f833ee9..23640f9e7 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -1490,7 +1490,7 @@ command_help (void *data, struct t_gui_buffer *buffer, GUI_COLOR(GUI_COLOR_CHAT)); gui_chat_printf (NULL, " %s: %s", _("description"), - _(ptr_option->description)); + (ptr_option->description) ? _(ptr_option->description) : ""); switch (ptr_option->type) { case CONFIG_OPTION_TYPE_BOOLEAN: -- cgit v1.2.3