Fix static analysis tool issue
[platform/core/appfw/app2sd.git] / plugin / app2sd / server / app2sd_internals_registry.c
index 846d121..42ee967 100644 (file)
@@ -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)) {