int git_config_rename_section_in_file(const char *new_name,....) { size_t new_name_length = strlen(new_name); while (....) { char *output = buf; .... store.baselen = new_name_length; .... if (str[0] != '\0') .... } }