Fix segfault in config.c to let the tests go