X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..6e19032aa4c34a5c6c900e558d8bfa88f8382bc0:/libtests/t-words.c?ds=inline 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) {