FC Updates from BitShares and myself #21
1 changed files with 8 additions and 10 deletions
|
|
@ -217,18 +217,16 @@ void cli::getline( const fc::string& prompt, fc::string& line)
|
||||||
if( line_read == nullptr )
|
if( line_read == nullptr )
|
||||||
FC_THROW_EXCEPTION( fc::eof_exception, "" );
|
FC_THROW_EXCEPTION( fc::eof_exception, "" );
|
||||||
line = line_read;
|
line = line_read;
|
||||||
if (*line_read)
|
try
|
||||||
{
|
{
|
||||||
try
|
if (*line_read)
|
||||||
{
|
|
||||||
add_history(line_read);
|
add_history(line_read);
|
||||||
free(line_read);
|
free(line_read);
|
||||||
}
|
}
|
||||||
catch(...)
|
catch(...)
|
||||||
{
|
{
|
||||||
free(line_read);
|
free(line_read);
|
||||||
throw;
|
throw;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}).wait();
|
}).wait();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue