Skip to content

Commit

Permalink
Fix "missing-braces" compile warnings on Android
Browse files Browse the repository at this point in the history
Jira: None.
Test: Build passes on Android and no warnings reported.
Signed-off-by: renchenglei <chenglei.ren@intel.com>
  • Loading branch information
renchenglei authored and kalyankondapally committed May 17, 2018
1 parent b1e934f commit 9c7b1fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libsync.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ static inline int sync_wait(int fd, int timeout)

static inline int sync_merge(const char *name, int fd1, int fd2)
{
struct sync_merge_data data = {0};
struct sync_merge_data data;
memset(&data, 0, sizeof(struct sync_merge_data));
int ret;

data.fd2 = fd2;
Expand Down

0 comments on commit 9c7b1fc

Please sign in to comment.