Changeset 14686


Ignore:
Timestamp:
04/22/13 08:08:01 (12 years ago)
Author:
Mathieu Morlighem
Message:

BUG: added assertions to avoid solution crash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/ToolkitOptions.cpp

    r14662 r14686  
    2222
    2323        /*copy options into toolkitoptions:*/
     24        _assert_(tokenlist);
    2425        toolkitoptions= xNew<char>(strlen(options)+1);
    2526        sprintf(toolkitoptions,   "%s",options);
     
    4950
    5051        /*First, because tokenizing destroys a string, copy what we have: */
     52        _assert_(tokenlist);
    5153        tokenlistcopy= xNew<char>(strlen(tokenlist)+1);
    5254        sprintf(tokenlistcopy,"%s",tokenlist);
Note: See TracChangeset for help on using the changeset viewer.