diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2015-12-10 11:04:58 -0600 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-12-14 16:59:27 +1100 |
commit | d4b142823e28deed097cf79b25d8d1e60b6f4e67 (patch) | |
tree | 9d0a51d0cf7b99896ee72207edff69b92bd8d360 | |
parent | cfc03baebbf658ec2d48dd9d5f0c1470ae30f58d (diff) | |
download | skiboot-d4b142823e28deed097cf79b25d8d1e60b6f4e67.zip skiboot-d4b142823e28deed097cf79b25d8d1e60b6f4e67.tar.gz skiboot-d4b142823e28deed097cf79b25d8d1e60b6f4e67.tar.bz2 |
external/opal-prd: Set initial size value
We're not initialising 'size' in handle_prd_control_run_cmd.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | external/opal-prd/opal-prd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/external/opal-prd/opal-prd.c b/external/opal-prd/opal-prd.c index b60512f..c58ee51 100644 --- a/external/opal-prd/opal-prd.c +++ b/external/opal-prd/opal-prd.c @@ -1308,6 +1308,7 @@ static void handle_prd_control_run_cmd(struct control_msg *send_msg, } s = (char *)recv_msg->data; + size = 0; for (i = 0; i < argc; i++) { argv[i] = (char *)htobe64((uint64_t)&s[size]); size += (strlen(&s[size]) + 1); |