From: Sangyoon Jang Date: Wed, 14 Oct 2015 02:52:53 +0000 (+0900) Subject: Revert "Get string from db if the value is neither "(NULL)" nor empty string" X-Git-Tag: accepted/tizen/tv/20151014.092735 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Faccepted%2Ftizen%2Ftv%2F20151014.092735;p=platform%2Fcore%2Fappfw%2Fpkgmgr-info.git Revert "Get string from db if the value is neither "(NULL)" nor empty string" This reverts commit dff125fbbf490b737e4d21876435579e153aeb4f. Change-Id: I50d9afafd6bdebe354db69ac8a562f5903c9d9c9 Signed-off-by: Sangyoon Jang --- diff --git a/src/pkgmgrinfo_db.c b/src/pkgmgrinfo_db.c index b1596a6..d6928bd 100644 --- 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); }