mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Correct assertions.
Found using llvm static analyzer. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5027 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
8a6b0224b9
commit
4f3b7696a0
@ -71,7 +71,7 @@ void expando_create(const char *key, EXPANDO_FUNC func, ...)
|
||||
const char *signal;
|
||||
va_list va;
|
||||
|
||||
g_return_if_fail(key != NULL || *key == '\0');
|
||||
g_return_if_fail(key != NULL && *key != '\0');
|
||||
g_return_if_fail(func != NULL);
|
||||
|
||||
if (key[1] != '\0')
|
||||
@ -136,7 +136,7 @@ void expando_destroy(const char *key, EXPANDO_FUNC func)
|
||||
gpointer origkey, value;
|
||||
EXPANDO_REC *rec;
|
||||
|
||||
g_return_if_fail(key != NULL || *key == '\0');
|
||||
g_return_if_fail(key != NULL && *key != '\0');
|
||||
g_return_if_fail(func != NULL);
|
||||
|
||||
if (key[1] == '\0') {
|
||||
|
Loading…
Reference in New Issue
Block a user