File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ __get_cxx_version ()
156
156
std::string ename;
157
157
std::string evalue;
158
158
// bool compilation_result = false;
159
- intptr_t output_value;
159
+ intptr_t output_value = 0 ;
160
160
bool hadError = false ;
161
161
162
162
// If silent is set to true, temporarily dismiss all std::cerr and
@@ -245,7 +245,7 @@ __get_cxx_version ()
245
245
{
246
246
// Publish a mime bundle for the last return value if
247
247
// the semicolon was omitted.
248
- if (!config.silent && !hadError && trim (blocks.back ()).back () != ' ;' ) {
248
+ if (!config.silent && output_value != 0 && trim (blocks.back ()).back () != ' ;' ) {
249
249
nl::json pub_data = mime_repr (output_value);
250
250
publish_execution_result (execution_counter, std::move (pub_data), nl::json::object ());
251
251
}
You can’t perform that action at this time.
0 commit comments