glib/tests: Fix NULL reference on >= C++11

Fixes #2582
This commit is contained in:
Pablo Correa Gómez 2022-01-18 16:46:58 +01:00
parent af982b1cc1
commit b8c4a3e13b
No known key found for this signature in database
GPG Key ID: 7A342565FF635F79

View File

@ -56,7 +56,11 @@ test_typeof (void)
int
main (int argc, char *argv[])
{
#if __cplusplus >= 201103L
g_test_init (&argc, &argv, nullptr);
#else
g_test_init (&argc, &argv, NULL);
#endif
g_test_add_func ("/C++/typeof", test_typeof);