projects
/
platform
/
core
/
appfw
/
pkgmgr-info.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28e321e
)
Revert "Get string from db if the value is neither "(NULL)" nor empty string"
93/49493/1
accepted/tizen/mobile/20151014.092716
accepted/tizen/tv/20151014.092735
accepted/tizen/wearable/20151014.092750
submit/tizen/20151014.045135
tizen_3.0.m2.a1_mobile_release
tizen_3.0.m2.a1_tv_release
author
Sangyoon Jang
<s89.jang@samsung.com>
Wed, 14 Oct 2015 02:52:53 +0000
(11:52 +0900)
committer
Sangyoon Jang
<s89.jang@samsung.com>
Wed, 14 Oct 2015 03:01:01 +0000
(12:01 +0900)
This reverts commit
dff125fbbf490b737e4d21876435579e153aeb4f
.
Change-Id: I50d9afafd6bdebe354db69ac8a562f5903c9d9c9
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
src/pkgmgrinfo_db.c
patch
|
blob
|
history
diff --git
a/src/pkgmgrinfo_db.c
b/src/pkgmgrinfo_db.c
index
b1596a6
..
d6928bd
100644
(file)
--- a/
src/pkgmgrinfo_db.c
+++ b/
src/pkgmgrinfo_db.c
@@
-406,8
+406,7
@@
void _save_column_str(sqlite3_stmt *stmt, int idx, const char **str)
const char *val;
val = (const char *)sqlite3_column_text(stmt, idx);
- /* get string when the result is not null */
- if (val && (strcasecmp(val, "(null)") != 0) && (strcmp(val, "") != 0))
+ if (val)
*str = strdup(val);
}