From 6537d7e90c48d76eb982701de8d0af6feb147fd0 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Thu, 3 Apr 2014 16:55:39 +0200 Subject: deh_main.c: Fix bogus check in DEH_ParseAssignment() The function would return false on lines without a '=' character, but only if that character is at least the third one on the line. :) Closes #376--- src/deh_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deh_main.c b/src/deh_main.c index 20858f32..1c808545 100644 --- a/src/deh_main.c +++ b/src/deh_main.c @@ -159,7 +159,7 @@ boolean DEH_ParseAssignment(char *line, char **variable_name, char **value) p = strchr(line, '='); - if (p == NULL && p-line > 2) + if (p == NULL) { return false; } -- cgit v1.2.3