[PR #1478] [CLOSED] Fixed errors detected by cppcheck 2.2 #2005

Closed
opened 2026-03-04 02:03:13 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/1478
Author: @ggtakec
Created: 11/19/2020
Status: Closed

Base: masterHead: fix_cppcheck_22


📝 Commits (1)

  • 4a6b5e9 Fixed errors detected by cppcheck 2.2

📊 Changes

2 files changed (+9 additions, -4 deletions)

View changed files

📝 src/curl.cpp (+7 -4)
📝 src/curl_util.cpp (+2 -0)

📄 Description

Relevant Issue (if applicable)

n/a

Details

Fixed an error detected by cppcheck 2.2.
Errors detected in curl_utils.cpp: nullPointerRedundantCheck is probably a false positive.
I have set the pointer of the variable of etaglist_t to add_etag_list (), but an error was output because it is an auto variable.
For this error, To fix this the memory is allocated and a variable pointer is passed.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/s3fs-fuse/s3fs-fuse/pull/1478 **Author:** [@ggtakec](https://github.com/ggtakec) **Created:** 11/19/2020 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix_cppcheck_22` --- ### 📝 Commits (1) - [`4a6b5e9`](https://github.com/s3fs-fuse/s3fs-fuse/commit/4a6b5e9f5708ad38d48326b72b2e21b34ca88e52) Fixed errors detected by cppcheck 2.2 ### 📊 Changes **2 files changed** (+9 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/curl.cpp` (+7 -4) 📝 `src/curl_util.cpp` (+2 -0) </details> ### 📄 Description ### Relevant Issue (if applicable) n/a ### Details Fixed an error detected by cppcheck 2.2. Errors detected in curl_utils.cpp: nullPointerRedundantCheck is probably a false positive. I have set the pointer of the variable of etaglist_t to add_etag_list (), but an error was output because it is an auto variable. For this error, To fix this the memory is allocated and a variable pointer is passed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 02:03:13 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#2005
No description provided.