Commit 67d1131b authored by Sebastian Ramacher's avatar Sebastian Ramacher

Fix infinite loop on NULL

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 2805cf1f
Pipeline #132 skipped
......@@ -294,11 +294,11 @@ cc_bookmarks(girara_session_t* session, const char* input)
error_free:
if (completion) {
if (completion != NULL) {
girara_completion_free(completion);
}
if (group) {
if (group != NULL) {
girara_completion_group_free(group);
}
......
......@@ -160,6 +160,7 @@ cmd_marks_delete(girara_session_t* session, girara_list_t* argument_list)
GIRARA_LIST_FOREACH(argument_list, char*, iter, key_string)
if (key_string == NULL) {
girara_list_iterator_next(iter);
continue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment