diff -ur ScummVM-cvs20031009/scummvm/common/config-manager.cpp ScummVM-cvs20031009+hack/scummvm/common/config-manager.cpp
old
|
new
|
|
51 | 51 | return t; |
52 | 52 | } |
53 | 53 | |
| 54 | static bool isnull(char *t) { |
| 55 | while (*t) { |
| 56 | if (!isspace(*t)) |
| 57 | return false; |
| 58 | t++; |
| 59 | } |
| 60 | return true; |
| 61 | } |
54 | 62 | |
55 | 63 | namespace Common { |
56 | 64 | |
… |
… |
|
119 | 127 | // E.g. restrict to only a-zA-Z0-9 and maybe -_ or so... |
120 | 128 | domain = t + 1; |
121 | 129 | } |
122 | | } else { |
| 130 | } else if (!isnull(t)) { |
123 | 131 | // It's a new key in the domain. |
124 | 132 | if (domain.isEmpty()) { |
125 | 133 | error("Config file buggy: we have a key without a domain first.\n"); |