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>
This commit is contained in:
Avik Sil 2014-01-20 10:56:06 +05:30
parent d81ffe71db
commit a7e87e0b63
1 changed files with 2 additions and 0 deletions

View File

@ -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