[CodeClean] Change variable name accepted/tizen/unified/20230503.024142
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Fri, 28 Apr 2023 02:26:39 +0000 (11:26 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Fri, 28 Apr 2023 05:05:54 +0000 (14:05 +0900)
- Change variable name not to hide the parameter of cb

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
daemon/pkg-mgr.cc

index f5a74fe..a232c9b 100644 (file)
@@ -128,10 +128,10 @@ _pkg_mgr_event_cb (const char *type, const char *package_name,
 
     /* parsing model_description.json */
     g_autoptr(JsonParser) parser = json_parser_new ();
-    g_autoptr(GError) error = NULL;
-    json_parser_load_from_file (parser, json_file_path, &error);
-    if (error) {
-      _E ("Failed to parse json file '%s': %s", json_file_path, error->message);
+    g_autoptr(GError) err = NULL;
+    json_parser_load_from_file (parser, json_file_path, &err);
+    if (err) {
+      _E ("Failed to parse json file '%s': %s", json_file_path, err->message);
       return;
     }