Changeset 13365


Ignore:
Timestamp:
09/13/12 14:01:58 (13 years ago)
Author:
Mathieu Morlighem
Message:

BUG: added return NULL to avoid segfault

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/python/include/python_macros.h

    r13363 r13365  
    3030  catch(ErrorException &exception){\
    3131          PyErr_SetString(PyExc_TypeError,"ISSM Error"); \
     32          return NULL;\
    3233  } \
    3334        catch (exception &e){\
    3435                PyErr_SetString(PyExc_TypeError,exprintf("Standard exception: %s\n",e.what()));\
     36                return NULL;\
    3537        }\
    3638        catch(...){\
    3739                PyErr_SetString(PyExc_TypeError,"An unexpected error occurred");\
     40                return NULL;\
    3841        }\
    3942        return output;
Note: See TracChangeset for help on using the changeset viewer.