1
0
mirror of https://git.sr.ht/~sircmpwn/gmni synced 2024-11-22 20:32:03 +01:00

fix null dereference

This commit is contained in:
Ondřej Fiala 2022-01-14 15:57:55 +01:00 committed by Drew DeVault
parent 0603755a00
commit b31e6551cf

@ -614,7 +614,7 @@ do_prompts(const char *prompt, struct browser *browser)
case 'm':
if (in[1] != '\0' && !isspace(in[1])) break;
char *title = in[1] ? &in[1] : browser->page_title;
save_bookmark(browser, trim_ws(title));
save_bookmark(browser, title ? trim_ws(title) : title);
result = PROMPT_AGAIN;
goto exit;
case 'M':