From 1a9684160df2c104824290e943f055d7cf89d21e Mon Sep 17 00:00:00 2001 From: brarcher Date: Sat, 4 Jan 2014 19:26:36 +0000 Subject: [PATCH] check_run.c: remove unreachable code This code cannot be reached, as tr->msg is never not NULL in this scope. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1029 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- src/check_run.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/check_run.c b/src/check_run.c index a310df6..032e86e 100644 --- a/src/check_run.c +++ b/src/check_run.c @@ -511,10 +511,6 @@ static void set_fork_info (TestResult *tr, int status, int signal_expected, unsi } else if (was_exit && exit_status != allowed_exit_value) { if (tr->msg == NULL) { /* early exit */ tr->rtype = CK_ERROR; - if(tr->msg != NULL) - { - free(tr->msg); - } tr->msg = exit_msg(exit_status); } else { tr->rtype = CK_FAILURE; -- 2.50.0