about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/muc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/muc.c b/src/muc.c
index 4474976d..8bc530aa 100644
--- a/src/muc.c
+++ b/src/muc.c
@@ -166,7 +166,9 @@ void
 muc_invites_clear(void)
 {
     autocomplete_clear(invite_ac);
-    g_hash_table_remove_all(invite_passwords);
+    if (invite_passwords) {
+        g_hash_table_remove_all(invite_passwords);
+    }
 }
 
 void