Fix to return NULL when there's no string to return for the given part 45/234745/2
authorYunjin Lee <yunjin-.lee@samsung.com>
Thu, 28 May 2020 08:30:24 +0000 (17:30 +0900)
committerYunjin Lee <yunjin-.lee@samsung.com>
Thu, 28 May 2020 08:33:32 +0000 (17:33 +0900)
Change-Id: I3d62ad92b6cdbd2272c5d98c516bc96b256e646c
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
ui/src/privacy_list_view.c
ui/src/privacy_package_list_view.c

index 3329bd2fcde4ddaa82a8e7ba65504dfef9f1e481..b6adb2029e2bc719f926fc13a43916e7e3b17a5b 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Copyright (c) 2016 - 2020 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2016-2020 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *     Licensed under the Apache License, Version 2.0 (the "License");
  *     you may not use this file except in compliance with the License.
@@ -33,7 +33,7 @@ static char* gl_text_get_cb(void *data, Evas_Object *obj, const char *part)
        char* privacy_name = (char *) data;
        privilege_info_get_privacy_display(privacy_name, &privacy_display);
        lreturn_if(!strcmp(part, "elm.text"), , privacy_display, "privacy = %s", privacy_name);
-       return "FAIL";
+       return NULL;
 }
 static void gl_del_cb(void *data, Evas_Object *obj)
 {
index 64e745a1561c2f81a50df558e63d1dfcf30429bb..118cfff37a2d0e67c8b8b674d7aa5fb1f68450d6 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Copyright (c) 2016-2018 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2016-2020 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *     Licensed under the Apache License, Version 2.0 (the "License");
  *     you may not use this file except in compliance with the License.
@@ -82,7 +82,7 @@ static char* gl_text_get_cb(void *data, Evas_Object *obj, const char *part)
 {
        pkg_data_s *pd = data;
        lreturn_if(!strcmp(part, "elm.text"), , strdup(pd->label), "privacy-package item = %s", pd->label);
-       return "FAIL";
+       return NULL;
 }
 
 static char* gl_menu_desc_text_get_cb(void *data, Evas_Object *obj, const char *part)