foxygit / doom Log in
commit 6537d7e90c48d76eb982701de8d0af6feb147fd0
Author:     Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Thu Apr 3 16:55:39 2014 +0200
Commit:     Fabian Greffrath <fabian@greffrath.com>
CommitDate: Thu Apr 3 16:55:39 2014 +0200

    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;
     }