1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

bits2level() with zero as argument printed some glib warnings.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@283 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-06-03 18:54:59 +00:00 committed by cras
parent 94adc5ef62
commit 3d39cded63

View File

@ -118,6 +118,9 @@ char *bits2level(int bits)
char *ret;
int n;
if (bits == 0)
return g_strdup("");
if (bits == MSGLEVEL_ALL)
return g_strdup("ALL");