mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02: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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue