summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAKASHI Takahiro <[email protected]>2021-01-22 10:43:27 +0900
committerHeinrich Schuchardt <[email protected]>2021-01-23 07:56:53 +0100
commit8f1844c3335be8bcf22de63057cf8f0c11416d00 (patch)
treec1b23c0a6b657afed2e74603aa7c9f89f04154c8 /scripts
parent30f8222bb0016eef29afdd997bd1b3cdc486fdf9 (diff)
efi_loader: capsule: fix SIZEOF_MISMATCH warning
CID 316361 says: > Passing argument "count * 8UL /* sizeof (*files) */" to > function "dlmalloc" and then casting the return value to "u16 **" is > suspicious. In this particular case "sizeof (u16 **)" happens to be equal > to "sizeof (u16 *)", but this is not a portable assumption. > > 767 tmp_files = malloc(count * sizeof(*files)); The change in this patch fixes the ambiguity. Signed-off-by: AKASHI Takahiro <[email protected]> Fixes: CID 316361 For readability use *tmp_files instead of tmp_files[0] Reviewed-by: Heinrich Schuchardt <[email protected]> Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions