commit | 30dd0ba5b03b190f5a759456f4e9affb2e2ed0ba | [log] [tgz] |
---|---|---|
author | Laurence Lundblade <lgl@island-resort.com> | Sun May 26 23:37:30 2019 +0300 |
committer | Laurence Lundblade <lgl@island-resort.com> | Sun May 26 23:37:30 2019 +0300 |
tree | ab2a58b94f42536bcd94d6f97f090a1f180cc2c7 | |
parent | 077475f0a33d885b1210da815eb350d977b5e3f9 [diff] [blame] |
Add encode functions to check for NULL output buf and internal error state
diff --git a/test/UsefulBuf_Tests.c b/test/UsefulBuf_Tests.c index 388f8cf..f53693a 100644 --- a/test/UsefulBuf_Tests.c +++ b/test/UsefulBuf_Tests.c
@@ -238,6 +238,11 @@ return "lengths near max size"; } + UsefulOutBuf_Init(&UOB, (UsefulBuf){NULL, 100}); + if(!UsefulOutBuf_IsBufferNULL(&UOB)) { + return "NULL check failed"; + } + return NULL; }