diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/FbCommands.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc index bc4b1e9..4714e11 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc | |||
@@ -175,7 +175,7 @@ FbTk::Command<void> *ExportCmd::parse(const string &command, const string &args, | |||
175 | if (command != "setresourcevalue") | 175 | if (command != "setresourcevalue") |
176 | FbTk::StringUtil::removeTrailingWhitespace(name); | 176 | FbTk::StringUtil::removeTrailingWhitespace(name); |
177 | size_t pos = name.find_first_of(command == "export" ? "=" : " \t"); | 177 | size_t pos = name.find_first_of(command == "export" ? "=" : " \t"); |
178 | if (pos == string::npos || pos == name.size() || !trusted) | 178 | if (pos == string::npos || pos == name.size()) |
179 | return 0; | 179 | return 0; |
180 | 180 | ||
181 | string value = name.substr(pos + 1); | 181 | string value = name.substr(pos + 1); |