projects
/
platform
/
core
/
api
/
machine-learning.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89501e8
)
[CodeClean] Change variable name
accepted/tizen/unified/20230503.024142
author
Yongjoo Ahn
<yongjoo1.ahn@samsung.com>
Fri, 28 Apr 2023 02:26:39 +0000
(11:26 +0900)
committer
jaeyun-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
patch
|
blob
|
history
diff --git
a/daemon/pkg-mgr.cc
b/daemon/pkg-mgr.cc
index
f5a74fe
..
a232c9b
100644
(file)
--- a/
daemon/pkg-mgr.cc
+++ b/
daemon/pkg-mgr.cc
@@
-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) err
or
= NULL;
- json_parser_load_from_file (parser, json_file_path, &err
or
);
- if (err
or
) {
- _E ("Failed to parse json file '%s': %s", json_file_path, err
or
->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;
}