projects
/
platform
/
core
/
appfw
/
app2sd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix static analysis tool issue
[platform/core/appfw/app2sd.git]
/
plugin
/
app2sd
/
server
/
app2sd_internals_registry.c
diff --git
a/plugin/app2sd/server/app2sd_internals_registry.c
b/plugin/app2sd/server/app2sd_internals_registry.c
index
846d121
..
42ee967
100644
(file)
--- a/
plugin/app2sd/server/app2sd_internals_registry.c
+++ b/
plugin/app2sd/server/app2sd_internals_registry.c
@@
-312,8
+312,8
@@
char *_app2sd_get_password_from_db(const char *pkgid, uid_t uid)
strncpy(passwd, (const char *)sqlite3_column_text(stmt, 1),
PASSWORD_LENGTH);
- if (
passwd == NULL
) {
- _E("data is
NULL
");
+ if (
strlen(passwd) == 0
) {
+ _E("data is
empty
");
goto FINISH_OFF;
}
if (SQLITE_OK != sqlite3_finalize(stmt)) {