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:
parent
94adc5ef62
commit
3d39cded63
@ -118,6 +118,9 @@ char *bits2level(int bits)
|
|||||||
char *ret;
|
char *ret;
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
|
if (bits == 0)
|
||||||
|
return g_strdup("");
|
||||||
|
|
||||||
if (bits == MSGLEVEL_ALL)
|
if (bits == MSGLEVEL_ALL)
|
||||||
return g_strdup("ALL");
|
return g_strdup("ALL");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user