]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - optee/ti-optee-client.git/commit
Explicitly initialize local variables
authorEtienne Carriere <etienne.carriere@linaro.org>
Thu, 21 Mar 2019 08:43:35 +0000 (09:43 +0100)
committerJerome Forissier <jerome.forissier@linaro.org>
Thu, 21 Mar 2019 08:46:53 +0000 (09:46 +0100)
commit924a4741d92417a29495fed39e371c8556a1e6c5
tree72cffa7a98788a631f0ca3863e465e413edf3f07
parent9dbc61b3767ab1c3dfd0a19af02926b92ae09247
Explicitly initialize local variables

This change initializes all local variables to prevent build issues
(warnings and/or errors) in OP-TEE client package.

Use memset() to initialize structured and typed variables. This change
changes ordering in the local variable definition block at function
head. Structured variables are defined below, right above the memset()
call block for their initialization, when possible.

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
12 files changed:
libteec/src/tee_client_api.c
libteec/src/teec_benchmark.c
libteec/src/teec_trace.c
tee-supplicant/src/gprof.c
tee-supplicant/src/handle.c
tee-supplicant/src/hmac_sha2.c
tee-supplicant/src/rpmb.c
tee-supplicant/src/sha2.c
tee-supplicant/src/tee_socket.c
tee-supplicant/src/tee_supp_fs.c
tee-supplicant/src/tee_supplicant.c
tee-supplicant/src/teec_ta_load.c