diff options
author | Fabian Greffrath | 2014-04-03 16:55:39 +0200 |
---|---|---|
committer | Fabian Greffrath | 2014-04-03 16:55:39 +0200 |
commit | 6537d7e90c48d76eb982701de8d0af6feb147fd0 (patch) | |
tree | a93529e6a84a9bad54a5af7e04371f8e5b95b7d1 /src | |
parent | c30f4a2f65172a0d358e4c85c7d3270af13b829b (diff) | |
download | chocolate-doom-6537d7e90c48d76eb982701de8d0af6feb147fd0.tar.gz chocolate-doom-6537d7e90c48d76eb982701de8d0af6feb147fd0.tar.bz2 chocolate-doom-6537d7e90c48d76eb982701de8d0af6feb147fd0.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/deh_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |