Prefer static_cast where possible (#1531)

This commit is contained in:
Andrew Gaul
2021-01-25 08:15:17 +09:00
committed by GitHub
parent b0e8758b63
commit dc9255bc5f
2 changed files with 6 additions and 6 deletions

View File

@ -87,7 +87,7 @@ struct curl_slist* curl_slist_sort_insert(struct curl_slist* list, const char* k
}
struct curl_slist* new_item;
if(NULL == (new_item = reinterpret_cast<struct curl_slist*>(malloc(sizeof(*new_item))))){
if(NULL == (new_item = static_cast<struct curl_slist*>(malloc(sizeof(*new_item))))){
free(data);
return list;
}