diff --git a/src/gmnlm.c b/src/gmnlm.c index f5b7480..3160327 100644 --- a/src/gmnlm.c +++ b/src/gmnlm.c @@ -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':