From ddb661cd80df997802b4ad92ba11536e0cff0d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 28 Sep 2017 01:36:10 +0200 Subject: [PATCH] aspell: display "?" if lang is NULL in /aspell listdict The lang should never be NULL anyway (this fixes a compiler warning). --- src/plugins/aspell/weechat-aspell-command.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/aspell/weechat-aspell-command.c b/src/plugins/aspell/weechat-aspell-command.c index 4ba11742d..5d4c0cc6c 100644 --- a/src/plugins/aspell/weechat-aspell-command.c +++ b/src/plugins/aspell/weechat-aspell-command.c @@ -191,7 +191,9 @@ weechat_aspell_command_speller_list_dicts () } snprintf (str_dict, sizeof (str_dict), "%-22s %s%s", - dict->name, lang, str_country); + dict->name, + (lang) ? lang : "?", + str_country); weechat_printf (NULL, " %s", str_dict);