diff options
author | Avik Sil <aviksil@linux.vnet.ibm.com> | 2014-01-20 10:56:06 +0530 |
---|---|---|
committer | Avik Sil <aviksil@linux.vnet.ibm.com> | 2014-01-20 17:19:47 +0530 |
commit | a7e87e0b638e263bb9d06ab9fd14c3bbf8afa096 (patch) | |
tree | 5f83c58ea83cb42329783b79ff26bc0293a10611 | |
parent | d81ffe71dbd2777c3ea5a2f13f7e4b27049e695c (diff) | |
download | SLOF-a7e87e0b638e263bb9d06ab9fd14c3bbf8afa096.zip SLOF-a7e87e0b638e263bb9d06ab9fd14c3bbf8afa096.tar.gz SLOF-a7e87e0b638e263bb9d06ab9fd14c3bbf8afa096.tar.bz2 |
Reset obp-tftp arguments before parsing
This avoids junk values assigned to obp-tftp arguments
Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
-rw-r--r-- | clients/net-snk/app/netapps/netboot.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clients/net-snk/app/netapps/netboot.c b/clients/net-snk/app/netapps/netboot.c index 863e073..ab96772 100644 --- a/clients/net-snk/app/netapps/netboot.c +++ b/clients/net-snk/app/netapps/netboot.c @@ -241,6 +241,8 @@ parse_args(const char *arg_str, obp_tftp_args_t *obp_tftp_args) unsigned int argc; char arg_buf[100]; + memset(obp_tftp_args, 0, sizeof(*obp_tftp_args)); + argc = get_args_count(arg_str); // find out if we should use BOOTP or DHCP |