diff --git a/libjsconsole/JSConsole.h b/libjsconsole/JSConsole.h index 77f316442..fc190a637 100644 --- a/libjsconsole/JSConsole.h +++ b/libjsconsole/JSConsole.h @@ -58,7 +58,7 @@ public: std::string rl; #if ETH_READLINE char* buff = readline(promptForIndentionLevel(openBrackets).c_str()); - isEmpty = !(buff && *buff); + isEmpty = !buff; if (!isEmpty) { rl = std::string(buff);