[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [PATCH] rcfile: don't crash when a bind to a string lacks t
From: |
Benno Schulenberg |
Subject: |
[Nano-devel] [PATCH] rcfile: don't crash when a bind to a string lacks the closing quote |
Date: |
Thu, 24 May 2018 20:31:54 +0200 |
This fixes https://savannah.gnu.org/bugs/?53972.
Reported-by: Marco Diego Aurélio Mesquita <address@hidden>
---
src/rcfile.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/rcfile.c b/src/rcfile.c
index 2e7c2ab6..0ab8bb72 100644
--- a/src/rcfile.c
+++ b/src/rcfile.c
@@ -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;
--
2.17.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Nano-devel] [PATCH] rcfile: don't crash when a bind to a string lacks the closing quote,
Benno Schulenberg <=