Rearrange the scope of each temporary variables 06/291006/1 accepted/tizen/unified/20230407.140022
authorSuyeon Hwang <stom.hwang@samsung.com>
Thu, 6 Apr 2023 05:09:29 +0000 (14:09 +0900)
committerTizen AI <ai.tzn.sec@samsung.com>
Thu, 6 Apr 2023 09:06:24 +0000 (18:06 +0900)
commit18b00a7cc7518a781638a7751523824d8578f3dc
tree904bff6ad304c9a309250ad6e20856cc092dae9a
parentb8511f431544f16a05aad1bf87658e00fb38f6cb
Rearrange the scope of each temporary variables

This patch is for solving static analysis issues.

Through this patch, the scope of each temporary variables will become as
smaller as they can. This change can reduce the possibility of mistakes
such as accessing invalid pointer.

Change-Id: I93aaef1711ddc27663812fd0c089c9be4c277f23
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
common/vc_cmd_db.c
common/vc_command.c
server/vcd_client_data.c
server/vcd_server.c