diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-03 18:54:59 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-03 18:54:59 +0000 |
commit | 3d39cded63a7661f49f8f111946ea9bd8672440e (patch) | |
tree | 53e7712fdd221cfcd5fe05d7ab9f63c180e2e79b | |
parent | 94adc5ef62521524e0cf0239ad18bf42b57d39cc (diff) | |
download | irssi-3d39cded63a7661f49f8f111946ea9bd8672440e.zip |
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
-rw-r--r-- | src/core/levels.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/levels.c b/src/core/levels.c index 9682dcdd..207c0619 100644 --- a/src/core/levels.c +++ b/src/core/levels.c @@ -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"); |