summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlokilee73 <changjoo.lee@samsung.com>2020-09-07 16:52:02 +0900
committerlokilee73 <changjoo.lee@samsung.com>2020-09-07 17:05:23 +0900
commitda849456eadeaac1533360fad6ee57e90c8be3c0 (patch)
tree003930821c101dbf79c3b49c75334d82022ca2c3
parent69aedcaeccfb8624fe1bf79c357f1cf4ce545c70 (diff)
downloaddevice-manager-plugin-emul-da849456eadeaac1533360fad6ee57e90c8be3c0.tar.gz
device-manager-plugin-emul-da849456eadeaac1533360fad6ee57e90c8be3c0.tar.bz2
device-manager-plugin-emul-da849456eadeaac1533360fad6ee57e90c8be3c0.zip
Change-Id: I13bb25754be97154bd3db878b2b08cd5860eac59 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
-rw-r--r--src/device_manager_plugin_emul.c16
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);