Skip to content

Commit 6fdde41

Browse files
committed
Variable could be const.
1 parent 6c1f27e commit 6fdde41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/binfmt-bypass/lib.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ int bypassBinfmtAndRunAppImage(const std::string& appimage_path, const std::vect
210210

211211
#ifdef HAVE_MEMFD_CREATE
212212
// create "file" in memory, copy runtime there and patch out magic bytes
213-
int runtime_fd = create_memfd_with_patched_runtime(appimage_path.c_str(), size);
213+
const int runtime_fd = create_memfd_with_patched_runtime(appimage_path.c_str(), size);
214214
#else
215-
int runtime_fd = create_shm_fd_with_patched_runtime(appimage_filename.c_str(), size);
215+
const int runtime_fd = create_shm_fd_with_patched_runtime(appimage_filename.c_str(), size);
216216
#endif
217217

218218
if (runtime_fd < 0) {

0 commit comments

Comments
 (0)