mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04: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;
|
||||
int n;
|
||||
|
||||
if (bits == 0)
|
||||
return g_strdup("");
|
||||
|
||||
if (bits == MSGLEVEL_ALL)
|
||||
return g_strdup("ALL");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user