diff options
author | lokilee73 <changjoo.lee@samsung.com> | 2020-09-07 16:52:02 +0900 |
---|---|---|
committer | lokilee73 <changjoo.lee@samsung.com> | 2020-09-07 17:05:23 +0900 |
commit | da849456eadeaac1533360fad6ee57e90c8be3c0 (patch) | |
tree | 003930821c101dbf79c3b49c75334d82022ca2c3 | |
parent | 69aedcaeccfb8624fe1bf79c357f1cf4ce545c70 (diff) | |
download | device-manager-plugin-emul-da849456eadeaac1533360fad6ee57e90c8be3c0.tar.gz device-manager-plugin-emul-da849456eadeaac1533360fad6ee57e90c8be3c0.tar.bz2 device-manager-plugin-emul-da849456eadeaac1533360fad6ee57e90c8be3c0.zip |
Coverity Fixtizen_6.0.m2_releasesubmit/tizen_6.0_hotfix/20201103.114801submit/tizen_6.0_hotfix/20201102.192501submit/tizen_6.0/20201109.030411submit/tizen_6.0/20201029.205101submit/tizen/20201104.011652submit/tizen/20201103.015640submit/tizen/20200908.010406submit/tizen/20200907.113616accepted/tizen/unified/20201106.130211accepted/tizen/unified/20200908.060821accepted/tizen/6.0/unified/hotfix/20201103.051025accepted/tizen/6.0/unified/20201110.230802accepted/tizen/6.0/unified/20201030.123236tizen_6.0_hotfixtizen_6.0accepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unified
Change-Id: I13bb25754be97154bd3db878b2b08cd5860eac59
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
-rw-r--r-- | src/device_manager_plugin_emul.c | 16 |
1 files 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); |