diff options
Diffstat (limited to 'pjlib/src/pjlib-samples/except.c')
-rw-r--r-- | pjlib/src/pjlib-samples/except.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pjlib/src/pjlib-samples/except.c b/pjlib/src/pjlib-samples/except.c index 3bbfa544..5a319403 100644 --- a/pjlib/src/pjlib-samples/except.c +++ b/pjlib/src/pjlib-samples/except.c @@ -54,11 +54,7 @@ static int test_exception() free(data); randomly_throw_exception(); } - PJ_CATCH( NO_MEMORY ) { - puts("Can't allocate memory"); - return 0; - } - PJ_DEFAULT { + PJ_CATCH_ANY { pj_exception_id_t x_id; x_id = PJ_GET_EXCEPTION(); |