From f42f24165bc9f2385d5d9779eb540fd86acee87b Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 15 Dec 2014 10:43:22 +0100 Subject: [PATCH] Bugfix: Avoid accessing temporary after its lifetime. --- eth/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/eth/main.cpp b/eth/main.cpp index 49eac8876..1520e86c4 100644 --- a/eth/main.cpp +++ b/eth/main.cpp @@ -441,9 +441,8 @@ int main(int argc, char** argv) #endif else if (cmd == "address") { - cout << "Current address:" << endl; - const char* addchr = toHex(us.address().asArray()).c_str(); - cout << addchr << endl; + cout << "Current address:" << endl + << toHex(us.address().asArray()) << endl; } else if (cmd == "secret") {