mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-11 00:43:45 +01:00
Fix infinite loop on NULL
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
2805cf1f2c
commit
67d1131bbb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user