cgmnlm

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/cgmnlm.git
Log | Files | Refs | README | LICENSE

commit 379b2fd1d2f545d8b863b3930200900fce1cd326
parent 5d09ed3ce45ba338716b70731fff7e921688c67c
Author: Ondřej Fiala <temp.xanomes@volny.cz>
Date:   Fri, 14 Jan 2022 15:57:55 +0100

fix null dereference

Diffstat:
Msrc/gmnlm.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gmnlm.c b/src/gmnlm.c @@ -709,7 +709,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 'k':