aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEugene Timokhov <timocov@gmail.com>2016-09-04 03:33:49 +0300
committerEugene Timokhov <timocov@gmail.com>2016-09-04 03:33:49 +0300
commitf3350597a38f0f901e287cdacfed0467ac259c0a (patch)
treebd5f8be960cdb55c7e90825784bf7c95a6034506 /include
parent3b8035edbe9e1228a3cd11d0fa829e17fc211fa5 (diff)
downloadcrow-f3350597a38f0f901e287cdacfed0467ac259c0a.tar.gz
crow-f3350597a38f0f901e287cdacfed0467ac259c0a.zip
Fixed crow::json::detail::r_string move operator
Diffstat (limited to 'include')
-rw-r--r--include/json.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/json.h b/include/json.h
index 27e621e..9f06244 100644
--- a/include/json.h
+++ b/include/json.h
@@ -131,6 +131,8 @@ namespace crow
s_ = r.s_;
e_ = r.e_;
owned_ = r.owned_;
+ if (r.owned_)
+ r.owned_ = 0;
return *this;
}