Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

Commit 9c7b1fc

Browse files
renchengleikalyankondapally
authored andcommitted
Fix "missing-braces" compile warnings on Android
Jira: None. Test: Build passes on Android and no warnings reported. Signed-off-by: renchenglei <chenglei.ren@intel.com>
1 parent b1e934f commit 9c7b1fc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libsync.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ static inline int sync_wait(int fd, int timeout)
8585

8686
static inline int sync_merge(const char *name, int fd1, int fd2)
8787
{
88-
struct sync_merge_data data = {0};
88+
struct sync_merge_data data;
89+
memset(&data, 0, sizeof(struct sync_merge_data));
8990
int ret;
9091

9192
data.fd2 = fd2;

0 commit comments

Comments
 (0)