From 1c8e24773230828bad89680fd4583562acb8c231 Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Wed, 29 Jul 2009 16:14:52 -0400 Subject: [PATCH] Allow digits in variable names --- src/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.c b/src/parser.c index 9b8d3e3aa..7d462eac1 100644 --- a/src/parser.c +++ b/src/parser.c @@ -53,7 +53,7 @@ static void parse_name(struct config_file *file, char *name, size_t maxlen) { break; } - if (!isalpha(c) && c != '_' && c != '-') { + if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-') { unparse_char(file, c); break; }