diff options
author | James Booth <boothj5@gmail.com> | 2014-09-26 00:48:48 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-09-26 00:48:48 +0100 |
commit | a4f7932ed7dc35aa1a706d1b889c26da079963bb (patch) | |
tree | 81568a5919aa952a20951fe26bd152e03c6fb884 /src/xmpp | |
parent | ccbaa67a01eddc90d9e31745f043712160dcf01f (diff) | |
download | profani-tty-a4f7932ed7dc35aa1a706d1b889c26da079963bb.tar.gz |
Check for NULL inside autocomplete_free
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/bookmark.c | 4 |
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); |