[PR #2471] [MERGED] Replace memset with C++11 value initialization #2556

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

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/2471
Author: @gaul
Created: 6/12/2024
Status: Merged
Merged: 6/23/2024
Merged by: @ggtakec

Base: masterHead: memset


📝 Commits (1)

  • b496352 Replace memset with C++11 value initialization

📊 Changes

7 files changed (+19 additions, -41 deletions)

View changed files

📝 src/cache.cpp (+2 -3)
📝 src/cache.h (+1 -6)
📝 src/fdcache_entity.cpp (+7 -12)
📝 src/fdcache_page.cpp (+1 -2)
📝 src/metaheader.cpp (+2 -4)
📝 src/s3fs.cpp (+3 -6)
📝 src/sighandlers.cpp (+3 -8)

📄 Description

This generates the same code but is safer due to using an implicit length and allowing member initialization.


🔄 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/2471 **Author:** [@gaul](https://github.com/gaul) **Created:** 6/12/2024 **Status:** ✅ Merged **Merged:** 6/23/2024 **Merged by:** [@ggtakec](https://github.com/ggtakec) **Base:** `master` ← **Head:** `memset` --- ### 📝 Commits (1) - [`b496352`](https://github.com/s3fs-fuse/s3fs-fuse/commit/b4963529fc669c9011a88ca8c86c4f6085242632) Replace memset with C++11 value initialization ### 📊 Changes **7 files changed** (+19 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `src/cache.cpp` (+2 -3) 📝 `src/cache.h` (+1 -6) 📝 `src/fdcache_entity.cpp` (+7 -12) 📝 `src/fdcache_page.cpp` (+1 -2) 📝 `src/metaheader.cpp` (+2 -4) 📝 `src/s3fs.cpp` (+3 -6) 📝 `src/sighandlers.cpp` (+3 -8) </details> ### 📄 Description This generates the same code but is safer due to using an implicit length and allowing member initialization. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 02:06:09 +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#2556
No description provided.