Permalink
Browse files

Don't try to call this during bringup.

  • Loading branch information...
1 parent fd1e24a commit d9077f46334b70996837829025cb6c4764740d14 @kr committed Dec 16, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 cut.c
View
4 cut.c
@@ -46,7 +46,7 @@ struct test_output {
static int breakpoint = 0;
static int count = 0, count_failures = 0, count_errors = 0;
-static cut_fn cur_takedown;
+static cut_fn cur_takedown = 0;
static test_output problem_reports = 0;
static const char *program;
@@ -198,7 +198,7 @@ void __cut_assert(
print_string( message );
new_line();
- cur_takedown();
+ if (cur_takedown) cur_takedown();
fflush(stdout);
fflush(stderr);
exit(-1);

0 comments on commit d9077f4

Please sign in to comment.