diff options
| author | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-04-02 14:55:46 +0200 |
|---|---|---|
| committer | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-04-02 14:55:46 +0200 |
| commit | f02f0b3c6b8801584884fb2e4da0707417374185 (patch) | |
| tree | 30245843797eadebee6da45665d7d2e269278efa /src | |
| parent | 6ab237cd9312f148ebe2c6a7785e7b9badb9a9c4 (diff) | |
| download | abrt-f02f0b3c6b8801584884fb2e4da0707417374185.tar.gz abrt-f02f0b3c6b8801584884fb2e4da0707417374185.tar.xz abrt-f02f0b3c6b8801584884fb2e4da0707417374185.zip | |
fixed parsing settings of action plugins
Diffstat (limited to 'src')
| -rw-r--r-- | src/Daemon/Settings.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/Daemon/Settings.cpp b/src/Daemon/Settings.cpp index bf412eb..097dbc9 100644 --- a/src/Daemon/Settings.cpp +++ b/src/Daemon/Settings.cpp @@ -152,6 +152,7 @@ CSettings::set_actions_t CSettings::ParseActionValue(const std::string& pValue) if (pValue[ii] == '\"') { is_quote = is_quote == true ? false : true; + item += pValue[ii]; } else if (pValue[ii] == '(' && !is_quote) { @@ -159,15 +160,12 @@ CSettings::set_actions_t CSettings::ParseActionValue(const std::string& pValue) item = ""; is_arg = true; } - else if ((pValue[ii] == ',' || pValue[ii] == ')') && !is_quote && is_arg) + else if (pValue[ii] == ')' && is_arg && !is_quote) { singleActions.insert(make_pair(action, item)); item = ""; - if (pValue[ii] == ')') - { - is_arg = false; - action = ""; - } + is_arg = false; + action = ""; } else if (pValue[ii] == ',' && !is_quote && !is_arg) { @@ -185,7 +183,6 @@ CSettings::set_actions_t CSettings::ParseActionValue(const std::string& pValue) if (item != "") { singleActions.insert(make_pair(item, "")); - action = ""; } return singleActions; } |
