1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 00:33:13 +02:00

Allow null value for hashtable entries

This commit is contained in:
Sebastien Helleu
2010-10-10 17:49:47 +02:00
parent 8d6c5e9e4c
commit 773bdc8d18
2 changed files with 40 additions and 16 deletions
+14 -5
View File
@@ -509,12 +509,21 @@ command_buffer_display_localvar (void *data,
(void) data;
(void) hashtable;
if (key && value)
if (key)
{
gui_chat_printf (NULL,
" %s: \"%s\"",
(const char *)key,
(const char *)value);
if (value)
{
gui_chat_printf (NULL,
" %s: \"%s\"",
(const char *)key,
(const char *)value);
}
else
{
gui_chat_printf (NULL,
" %s: (null)",
(const char *)key);
}
}
}