aboutsummaryrefslogtreecommitdiff
path: root/src/rest.cpp
diff options
context:
space:
mode:
authorAlin Rus <[email protected]>2018-01-14 18:15:31 +0100
committerAlin Rus <[email protected]>2018-02-13 20:47:55 +0100
commit19ac86e2063432fca1f21fd3ef9770e7bde5d0ff (patch)
tree3ac58066929e7945cc23ff720b7cdcce09f29912 /src/rest.cpp
parentMerge #11966: clientversion: Use full commit hash for commit-based version de... (diff)
downloaddiscoin-19ac86e2063432fca1f21fd3ef9770e7bde5d0ff.tar.xz
discoin-19ac86e2063432fca1f21fd3ef9770e7bde5d0ff.zip
Remove useless string initialization.
Diffstat (limited to 'src/rest.cpp')
-rw-r--r--src/rest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rest.cpp b/src/rest.cpp
index eeeb3f514..8cba59dbb 100644
--- a/src/rest.cpp
+++ b/src/rest.cpp
@@ -90,7 +90,7 @@ static enum RetFormat ParseDataFormat(std::string& param, const std::string& str
static std::string AvailableDataFormatsString()
{
- std::string formats = "";
+ std::string formats;
for (unsigned int i = 0; i < ARRAYLEN(rf_names); i++)
if (strlen(rf_names[i].name) > 0) {
formats.append(".");