Browse Source

free non-null pointer in jsconsole

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
5a99bc96b7
  1. 2
      libjsconsole/JSConsole.h

2
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);

Loading…
Cancel
Save