diff options
author | Dave Beckett <dave@dajobe.org> | 2017-01-08 14:49:20 -0800 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2017-01-08 14:49:20 -0800 |
commit | 5e8de6d47992f85df44c754b3594af0e21a31496 (patch) | |
tree | 4bedc5c8242ad64d1ebce064207d6a3d02b8c16b | |
parent | 0a196219b3b4873eb882f01a374f8356061c30af (diff) | |
download | raptor-5e8de6d47992f85df44c754b3594af0e21a31496.tar.gz |
Fix RAPTOR_ASSERT and RAPTOR_ASSERT_DIE call args
-rw-r--r-- | src/raptor_general.c | 2 | ||||
-rw-r--r-- | src/raptor_www.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/raptor_general.c b/src/raptor_general.c index c7ce37ef..55f33e76 100644 --- a/src/raptor_general.c +++ b/src/raptor_general.c @@ -750,7 +750,7 @@ raptor_check_world_internal(raptor_world* world, const char* name) if(!world) { fprintf(stderr, "%s called with NULL world object\n", name); - RAPTOR_ASSERT_DIE(1) + RAPTOR_ASSERT_DIE(return 1) } /* In Raptor V1 ABI the first int of raptor_world is the 'opened' field */ diff --git a/src/raptor_www.c b/src/raptor_www.c index d724c6ec..c651f752 100644 --- a/src/raptor_www.c +++ b/src/raptor_www.c @@ -403,7 +403,7 @@ raptor_www_set_http_cache_control(raptor_www* www, const char* cache_control) size_t len; size_t cc_len; - RAPTOR_ASSERT((strlen(header) != header_len), "Cache-Control header length is wrong"); + RAPTOR_ASSERT_RETURN((strlen(header) != header_len), "Cache-Control header length is wrong", 1); if(www->cache_control) { RAPTOR_FREE(char*, www->cache_control); |