[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] rombios/tcgbios: initialise logdataptr in HashLogEvent32
commit 0b5e769ae3ac81f8a8dfaf476147ccdf41caeb68 Author: Wei Liu <wei.liu2@xxxxxxxxxx> AuthorDate: Fri Apr 29 16:11:14 2016 +0100 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Fri May 6 15:50:20 2016 +0100 rombios/tcgbios: initialise logdataptr in HashLogEvent32 Gcc complains: tcgbios.c: In function â??HashLogEvent32â??: tcgbios.c:1131:10: error: â??logdataptrâ?? may be used uninitialized in this function [-Werror=maybe-uninitialized] entry = tcpa_extend_acpi_log(logdataptr); It fails to figure out when logdataptr is used it is always initialised in a if block a few line above. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Reviewed-by: Doug Goldstein <cardoe@xxxxxxxxxx> Release-acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- tools/firmware/rombios/32bit/tcgbios/tcgbios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/firmware/rombios/32bit/tcgbios/tcgbios.c b/tools/firmware/rombios/32bit/tcgbios/tcgbios.c index 3501051..fa22c44 100644 --- a/tools/firmware/rombios/32bit/tcgbios/tcgbios.c +++ b/tools/firmware/rombios/32bit/tcgbios/tcgbios.c @@ -1062,7 +1062,7 @@ uint32_t HashLogEvent32(struct hlei *hlei, struct hleo *hleo, { uint32_t rc = 0; uint16_t size; - uint32_t logdataptr; + uint32_t logdataptr = 0; uint32_t logdatalen; uint32_t hashdataptr; uint32_t hashdatalen; -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |