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