1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

aspell: display "?" if lang is NULL in /aspell listdict

The lang should never be NULL anyway (this fixes a compiler warning).
This commit is contained in:
Sébastien Helleu
2017-09-28 01:36:10 +02:00
parent 1c3e724ec6
commit ddb661cd80
+3 -1
View File
@@ -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);