diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-11-21 10:07:46 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-11-21 11:53:37 +0100 |
commit | d179981b2ddace3dfbf79f828c592a970cd2f009 (patch) | |
tree | 409b5596da8784a157fe122a1095f340f8cfecb8 /commands | |
parent | cb85fb8214f932a946ca87bc98e904a09d4b73b4 (diff) | |
download | barebox-d179981b2ddace3dfbf79f828c592a970cd2f009.tar.gz barebox-d179981b2ddace3dfbf79f828c592a970cd2f009.tar.xz |
splash: init struct allocated the stack to 0
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Tested-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/splash.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/splash.c b/commands/splash.c index 65dd530196..4cc463ec49 100644 --- a/commands/splash.c +++ b/commands/splash.c @@ -19,6 +19,10 @@ static int do_splash(int argc, char *argv[]) u32 bg_color = 0x00000000; bool do_bg = false; + memset(&s, 0, sizeof(s)); + memset(&sc, 0, sizeof(sc)); + memset(&info, 0, sizeof(info)); + s.x = -1; s.y = -1; s.width = -1; |