Added comment for nullPointerRedundantCheck/cppcheck2.2

This commit is contained in:
Takeshi Nakatani 2020-11-21 00:43:28 +00:00 committed by Andrew Gaul
parent f8d5b76edb
commit 533322859d

View File

@ -76,6 +76,8 @@ struct curl_slist* curl_slist_sort_insert(struct curl_slist* list, const char* k
} }
new_item->next = NULL; new_item->next = NULL;
// cppcheck-suppress unmatchedSuppression
// cppcheck-suppress nullPointerRedundantCheck
for(lastpos = NULL, curpos = list; curpos; lastpos = curpos, curpos = curpos->next){ for(lastpos = NULL, curpos = list; curpos; lastpos = curpos, curpos = curpos->next){
std::string strcur = curpos->data; std::string strcur = curpos->data;
size_t pos; size_t pos;