Searched refs:old_str (Results 1 – 1 of 1) sorted by relevance
39 char *old_str = *str; in http_utils_assign_string() local43 if (old_str) { in http_utils_assign_string()44 old_str = realloc(old_str, l + 1); in http_utils_assign_string()45 mem_check(old_str); in http_utils_assign_string()46 old_str[l] = 0; in http_utils_assign_string()48 old_str = calloc(1, l + 1); in http_utils_assign_string()49 mem_check(old_str); in http_utils_assign_string()51 memcpy(old_str, new_str, l); in http_utils_assign_string()52 *str = old_str; in http_utils_assign_string()53 return old_str; in http_utils_assign_string()[all …]