config: avoid segfault when parsing command-line config