diff options
-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); |