projects
/
platform
/
core
/
system
/
buxton2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3475fa
)
common : fix ENOENT handling in direct_get
68/63568/2
accepted/tizen/common/20160325.135450
accepted/tizen/ivi/20160325.032241
accepted/tizen/mobile/20160325.032144
accepted/tizen/tv/20160325.032156
accepted/tizen/wearable/20160325.032213
submit/tizen/20160324.142129
author
Jiwoong Im
<jiwoong.im@samsung.com>
Thu, 24 Mar 2016 13:16:16 +0000
(22:16 +0900)
committer
Jiwoong Im
<jiwoong.im@samsung.com>
Thu, 24 Mar 2016 13:19:52 +0000
(06:19 -0700)
Change-Id: I86a06a79f92543a74564a940c1cce525531608c7
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
common/direct.c
patch
|
blob
|
history
diff --git
a/common/direct.c
b/common/direct.c
index
cf582c4
..
d073589
100644
(file)
--- a/
common/direct.c
+++ b/
common/direct.c
@@
-157,16
+157,15
@@
int direct_get(const struct buxton_layer *layer,
r = get_val(ly, layer->uid, BUXTON_LAYER_NORMAL, key, NULL, NULL,
&db_val);
- if (r == -1 && errno != ENOENT) {
+ if (r == -1) {
+ if (errno == ENOENT) {
+ *val = base_val;
+ return 0;
+ }
value_free(&base_val);
return -1;
}
- if (errno == ENOENT) {
- *val = base_val;
- return 0;
- }
-
value_free(&base_val);
*val = db_val;