Ignore:
Timestamp:
May 12, 2014 6:27:02 AM (7 years ago)
Author:
kulshres
Message:

do not segfault if trace_off is called before trace_on

segfault is bad, even though a user doing this is clearly brain-dead.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/src/taping.c

    r468 r502  
    284284                    "ADOL-C error: Trace was created on a 32-bit platform, cannot be opened on 64-bit platform!\n"
    285285                );
     286            break;
     287        case ADOLC_TAPING_NOT_ACTUALLY_TAPING:
     288            fprintf(DIAG_OUT,
     289                    "ADOL-C error: Trace %d is not being currently created!\n",
     290                    failAdditionalInfo1);
    286291            break;
    287292
     
    10681073    ADOLC_CURRENT_TAPE_INFOS.num_eq_prod = 0;
    10691074    ADOLC_CURRENT_TAPE_INFOS.numSwitches = 0;
     1075    ADOLC_CURRENT_TAPE_INFOS.workMode = ADOLC_TAPING;
    10701076
    10711077    /* Put operation denoting the start_of_the tape */
Note: See TracChangeset for help on using the changeset viewer.