mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 23:43:46 +01:00
One more check
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
c575fe5f83
commit
dbe5f7429a
@ -448,10 +448,16 @@ get_jumplist_from_str(const char* str)
|
||||
g_free(jump);
|
||||
break;
|
||||
}
|
||||
|
||||
jump->x = g_ascii_strtod(token, NULL);
|
||||
|
||||
token = strtok_r(NULL, " ", &saveptr);
|
||||
if (token == NULL) {
|
||||
girara_warning("Could not parse jumplist information.");
|
||||
g_free(jump);
|
||||
break;
|
||||
}
|
||||
jump->y = g_ascii_strtod(token, NULL);
|
||||
|
||||
girara_list_append(result, jump);
|
||||
token = strtok_r(NULL, " ", &saveptr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user