diff --git a/glib/tests/regex.c b/glib/tests/regex.c index ee9cd21ca..1ea6f9288 100644 --- a/glib/tests/regex.c +++ b/glib/tests/regex.c @@ -712,6 +712,7 @@ test_fetch_all (gconstpointer d) l_exp = data->expected; for (i = 0; l_exp != NULL; i++, l_exp = g_slist_next (l_exp)) { + g_assert_nonnull (matches); g_assert_cmpstr (l_exp->data, ==, matches[i]); } @@ -800,6 +801,7 @@ test_split_simple (gconstpointer d) l_exp = data->expected; for (i = 0; l_exp != NULL; i++, l_exp = g_slist_next (l_exp)) { + g_assert_nonnull (tokens); g_assert_cmpstr (l_exp->data, ==, tokens[i]); } @@ -883,6 +885,7 @@ test_split_full (gconstpointer d) l_exp = data->expected; for (i = 0; l_exp != NULL; i++, l_exp = g_slist_next (l_exp)) { + g_assert_nonnull (tokens); g_assert_cmpstr (l_exp->data, ==, tokens[i]); } @@ -915,6 +918,7 @@ test_split (gconstpointer d) l_exp = data->expected; for (i = 0; l_exp != NULL; i++, l_exp = g_slist_next (l_exp)) { + g_assert_nonnull (tokens); g_assert_cmpstr (l_exp->data, ==, tokens[i]); }