conf_def.c: Avoid calling strlen() in a loop