]> granicus.if.org Git - check/commitdiff
check_run.c: remove unreachable code
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sat, 4 Jan 2014 19:26:36 +0000 (19:26 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sat, 4 Jan 2014 19:26:36 +0000 (19:26 +0000)
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

index a310df6770f68f65db79f1a38293c59514ce03de..032e86e4e98cf8ead2d72ed4cc6d9d903ee4f232 100644 (file)
@@ -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;