Skip to content

Commit

Permalink
Don't try to call this during bringup.
Browse files Browse the repository at this point in the history
  • Loading branch information
kr committed Dec 16, 2008
1 parent fd1e24a commit d9077f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cut.c
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d9077f4

Please sign in to comment.