X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fbitcoinrpc.cpp;h=0ac7652d459e8102b9422f13fe11a9de390b09e4;hp=42687c8b2d19eee946d65ddf3aeeb000b8c3ec0d;hb=cecf7a56ed5a5efd939b21c760c69da616306005;hpb=f1498f6725d36c0c70b6bea131c51d5824bcfde3 diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 42687c8..0ac7652 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -466,7 +466,7 @@ int ReadHTTPHeader(std::basic_istream& stream, map& mapHea int ReadHTTP(std::basic_istream& stream, map& mapHeadersRet, string& strMessageRet) { mapHeadersRet.clear(); - strMessageRet = ""; + strMessageRet.clear(); // Read status int nProto = 0; @@ -1299,7 +1299,7 @@ int CommandLineRPC(int argc, char *argv[]) { // Result if (result.type() == null_type) - strPrint = ""; + strPrint.clear(); else if (result.type() == str_type) strPrint = result.get_str(); else