Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 08fc088

Browse files
tmdsstephentoub
authored andcommitted
pal_io.c: fix preprocessor case not yet migrated from cpp to c (#25365)
1 parent b2568c5 commit 08fc088

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Native/Unix/System.Native/pal_io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ int32_t SystemNative_ReadDirR(DIR* dir, void* buffer, int32_t bufferSize, struct
385385
// 0 returned with null result -> end-of-stream
386386
if (result == NULL)
387387
{
388-
*outputEntry = {}; // managed out param must be initialized
388+
memset(outputEntry, 0, sizeof(*outputEntry)); // managed out param must be initialized
389389

390390
// kernel set errno -> failure
391391
if (errno != 0)

0 commit comments

Comments
 (0)