about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-09-26 00:48:48 +0100
committerJames Booth <boothj5@gmail.com>2014-09-26 00:48:48 +0100
commita4f7932ed7dc35aa1a706d1b889c26da079963bb (patch)
tree81568a5919aa952a20951fe26bd152e03c6fb884 /src/xmpp
parentccbaa67a01eddc90d9e31745f043712160dcf01f (diff)
downloadprofani-tty-a4f7932ed7dc35aa1a706d1b889c26da079963bb.tar.gz
Check for NULL inside autocomplete_free
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/bookmark.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/xmpp/bookmark.c b/src/xmpp/bookmark.c
index b4931b8f..395bf102 100644
--- a/src/xmpp/bookmark.c
+++ b/src/xmpp/bookmark.c
@@ -77,9 +77,7 @@ bookmark_request(void)
     id = strdup("bookmark_init_request");
 
     autojoin_count = 0;
-    if (bookmark_ac != NULL) {
-        autocomplete_free(bookmark_ac);
-    }
+    autocomplete_free(bookmark_ac);
     bookmark_ac = autocomplete_new();
     if (bookmark_list != NULL) {
         g_list_free_full(bookmark_list, _bookmark_item_destroy);