Showing the changes to src/core/chuck_errmsg.cpp (1 of 1 file). Show all
Unified · Split
| @@ -126,13 +126,13 @@ void ck_fflush_stdout() · 125 unmodified lines | |||
| 126 | void ck_fflush_stderr() | 126 | void ck_fflush_stderr() |
| 127 | { | 127 | { |
| 128 | // check if stream contains a newline | 128 | // check if stream contains a newline |
| 129 | if( g_stderr_stream.str().find( '\n' ) != std::string::npos ) | ||
| 130 | { | 129 | { |
| 131 | // if so, print it | 130 | // if so, print it |
| 132 | if( g_stderr_callback == NULL ) | 131 | if( g_stderr_callback == NULL ) |
| 133 | { | 132 | { |
| 134 | // send to stderr | 133 | // send to stderr |
| 135 | fprintf( stderr, "%s", g_stderr_stream.str().c_str() ); | 134 | fprintf( stderr, "%s", g_stderr_stream.str().c_str() ); |
| 135 | fflush( stderr ); | ||
| 136 | } | 136 | } |
| 137 | else | 137 | else |
| 138 | { | 138 | { |