Skip to content

Commit

Permalink
Merge branch 'master' into srj-output-tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-johnson committed Jul 16, 2018
2 parents 5240545 + 6acc274 commit a0c7a39
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/runtime/printer.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ class Printer {
}

Printer &operator<<(const char *arg) {
dst = halide_string_to_string(dst, end, arg);
// Crashing on NULL here is a big debugging time sink.
if (arg == NULL) {
dst = halide_string_to_string(dst, end, "<NULL>");
} else {
dst = halide_string_to_string(dst, end, arg);
}
return *this;
}

Expand Down

0 comments on commit a0c7a39

Please sign in to comment.