Prevent a segfault when writing a config file containing 'rotate' option