summaryrefslogtreecommitdiffabout
path: root/lib/params.cc
Side-by-side diff
Diffstat (limited to 'lib/params.cc') (more/less context) (show whitespace changes)
-rw-r--r--lib/params.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/params.cc b/lib/params.cc
index 03867d5..b181811 100644
--- a/lib/params.cc
+++ b/lib/params.cc
@@ -34,4 +34,5 @@ namespace opkele {
if(nl==string::npos)
throw bad_input(OPKELE_CP_ "malformed input");
+ if(nl>co)
insert(value_type(kv.substr(p,co-p),kv.substr(co+1,nl-co-1)));
p = nl+1;