X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..c0f84b88cab9518d29900e02a9fb67776820e902:/libtests/t-words.c diff --git a/libtests/t-words.c b/libtests/t-words.c index af9468c..a8efde9 100644 --- a/libtests/t-words.c +++ b/libtests/t-words.c @@ -54,6 +54,7 @@ static void test_words(void) { for(t = 0; t < NWTEST; ++t) { char **got = utf8_word_split(wtest[t].in, strlen(wtest[t].in), &ngot, 0); + assert(got != NULL); for(nexpect = 0; wtest[t].expect[nexpect]; ++nexpect) ; if(nexpect == ngot) {