From 493348cd5805cb11ac94582e0a843d29b8492382 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Wed, 5 Mar 2025 03:14:46 +1100 Subject: [PATCH] posixfile.cpp: nothrow is passed to operator new, not to reinterpret_cast. --- src/osd/modules/file/posixfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/modules/file/posixfile.cpp b/src/osd/modules/file/posixfile.cpp index b6f9f65921b..db3bc55dd03 100644 --- a/src/osd/modules/file/posixfile.cpp +++ b/src/osd/modules/file/posixfile.cpp @@ -380,7 +380,7 @@ std::unique_ptr osd_stat(const std::string &path) // create an osd_directory_entry; be sure to make sure that the caller can // free all resources by just freeing the resulting osd_directory_entry - auto const result = reinterpret_cast(::operator new(sizeof(osd::directory::entry) + path.length() + 1), std::nothrow); + auto const result = reinterpret_cast(::operator new(sizeof(osd::directory::entry) + path.length() + 1, std::nothrow)); if (!result) return nullptr; new (result) osd::directory::entry;