aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Fontaine <fontaine.fabrice@gmail.com>2019-09-28 20:51:07 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2021-03-30 15:17:07 +0200
commit520f54eb94845e597837ae908a03b91ae8c8758f (patch)
tree4efb0a0cccec6a07df1001b910006a4bfbc53f62
parentad6890a2dd7eb102514610ca2c6d6335e896000f (diff)
downloadmmc-utils-520f54eb94845e597837ae908a03b91ae8c8758f.tar.gz
mmc_cmds.c: fix build with gcc 4.9
Fix following error with gcc 4.9: mmc_cmds.c:1918:9: error: missing braces around initializer [-Werror=missing-braces] struct rpmb_frame frame_status = {0}; Fixes: - http://autobuild.buildroot.org/results/bf3b6f9f6ef39b99842b3c92495b7bf359c68158 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Link: https://lore.kernel.org/r/20190928185107.21125-1-fontaine.fabrice@gmail.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--mmc_cmds.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mmc_cmds.c b/mmc_cmds.c
index 6c54d83..779dd13 100644
--- a/mmc_cmds.c
+++ b/mmc_cmds.c
@@ -1982,7 +1982,9 @@ static int do_rpmb_op(int fd,
u_int16_t rpmb_type;
struct mmc_ioc_multi_cmd *mioc;
struct mmc_ioc_cmd *ioc;
- struct rpmb_frame frame_status = {0};
+ struct rpmb_frame frame_status;
+
+ memset(&frame_status, 0, sizeof(frame_status));
if (!frame_in || !frame_out || !out_cnt)
return -EINVAL;