From da849456eadeaac1533360fad6ee57e90c8be3c0 Mon Sep 17 00:00:00 2001 From: lokilee73 Date: Mon, 7 Sep 2020 16:52:02 +0900 Subject: Coverity Fix Change-Id: I13bb25754be97154bd3db878b2b08cd5860eac59 Signed-off-by: lokilee73 --- src/device_manager_plugin_emul.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/device_manager_plugin_emul.c b/src/device_manager_plugin_emul.c index 07e3d43..8352507 100644 --- a/src/device_manager_plugin_emul.c +++ b/src/device_manager_plugin_emul.c @@ -319,7 +319,7 @@ int OEM_sys_get_display_count(int *value) int OEM_sys_get_backlight_max_brightness(int index, int *value) { int ret = -1; - char path[MAX_NAME+1]; + char path[MAX_NAME+1] = {0,}; if (index >= DISP_MAX) { devmgr_log("supports %d display node", DISP_MAX); @@ -336,7 +336,7 @@ int OEM_sys_get_backlight_max_brightness(int index, int *value) int OEM_sys_get_backlight_min_brightness(int index, int *value) { int ret = -1; - char path[MAX_NAME+1]; + char path[MAX_NAME+1] = {0,}; if (index >= DISP_MAX) { devmgr_log("supports %d display node", DISP_MAX); @@ -353,7 +353,7 @@ int OEM_sys_get_backlight_min_brightness(int index, int *value) int OEM_sys_get_backlight_brightness(int index, int *value, int power_saving) { int ret = -1; - char path[MAX_NAME+1]; + char path[MAX_NAME+1] = {0,}; int max_brightness; int pwr_saving_offset; @@ -390,7 +390,7 @@ int OEM_sys_get_backlight_brightness(int index, int *value, int power_saving) static int OEM_sys_set_backlight_brightness(int index, int value, int power_saving) { int ret = -1; - char path[MAX_NAME+1]; + char path[MAX_NAME+1] = {0,}; int max_brightness; int pwr_saving_offset; @@ -450,7 +450,7 @@ int OEM_sys_set_backlight_dimming(int index, int value) int OEM_sys_get_backlight_acl_control(int index, int *value) { int ret = -1; - char path[MAX_NAME+1]; + char path[MAX_NAME+1] = {0,}; if (index >= DISP_MAX) { devmgr_log("supports %d display node", DISP_MAX); @@ -467,7 +467,7 @@ int OEM_sys_get_backlight_acl_control(int index, int *value) int OEM_sys_set_backlight_acl_control(int index, int value) { int ret = -1; - char path[MAX_NAME+1]; + char path[MAX_NAME+1] = {0,}; if (index >= DISP_MAX) { devmgr_log("supports %d display node", DISP_MAX); @@ -484,7 +484,7 @@ int OEM_sys_set_backlight_acl_control(int index, int value) int OEM_sys_get_lcd_power(int index, int *value) { int ret = -1; - char path[MAX_NAME+1]; + char path[MAX_NAME+1] = {0,}; if (index >= DISP_MAX) { devmgr_log("supports %d display node", DISP_MAX); @@ -501,7 +501,7 @@ int OEM_sys_get_lcd_power(int index, int *value) int OEM_sys_set_lcd_power(int index, int value) { int ret = -1; - char path[MAX_NAME+1]; + char path[MAX_NAME+1] = {0,}; if (index >= DISP_MAX) { devmgr_log("supports %d display node", DISP_MAX); -- cgit v1.2.3