chiark / gitweb /
Placate gcc -flto
[disorder] / libtests / t-words.c
index af9468ceae72efacf51add08be5981508b0c4e73..a8efde9e8c2c9ed3c62b3d8aa1497db7472a397f 100644 (file)
@@ -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) {