mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-25 22:29:42 +03:00
rcfile: don't crash when a bind to a string lacks the closing quote
This fixes https://savannah.gnu.org/bugs/?53972. Reported-by: Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>
This commit is contained in:
parent
3757683e3f
commit
119a6f0de3
@ -400,7 +400,8 @@ void parse_binding(char *ptr, bool dobind)
|
||||
if (funcptr[0] == '\0') {
|
||||
rcfile_error(N_("Must specify a function to bind the key to"));
|
||||
goto free_things;
|
||||
}
|
||||
} else if (ptr == NULL)
|
||||
goto free_things;
|
||||
}
|
||||
|
||||
menuptr = ptr;
|
||||
|
Loading…
Reference in New Issue
Block a user