diff options
Diffstat (limited to 'server/src/account-server-db.c')
-rw-r--r-- | server/src/account-server-db.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/account-server-db.c b/server/src/account-server-db.c index 0e4eb99..a288777 100644 --- a/server/src/account-server-db.c +++ b/server/src/account-server-db.c @@ -3456,7 +3456,7 @@ GSList* _account_type_get_label_list_by_app_id_from_global_db(const char* app_id GSList* label_list = NULL; ACCOUNT_RETURN_VAL((app_id != NULL), { *error_code = _ACCOUNT_ERROR_INVALID_PARAMETER; }, NULL, ("APP ID IS NULL")); - ACCOUNT_RETURN_VAL((g_hAccountGlobalDB != NULL), {}, _ACCOUNT_ERROR_DB_NOT_OPENED, ("The database isn't connected.")); + ACCOUNT_RETURN_VAL((g_hAccountGlobalDB != NULL), { *error_code = _ACCOUNT_ERROR_DB_NOT_OPENED; }, NULL, ("The database isn't connected.")); ACCOUNT_MEMSET(query, 0x00, ACCOUNT_SQL_LEN_MAX); @@ -4115,7 +4115,7 @@ int _account_type_query_all_from_global_db(GSList **account_type_list_all) GSList *account_type_list = NULL; _INFO("_account_type_query_all_in_global_db start"); - ACCOUNT_RETURN_VAL((g_hAccountGlobalDB != NULL), {}, NULL, ("The database isn't connected.")); + ACCOUNT_RETURN_VAL((g_hAccountGlobalDB != NULL), {}, _ACCOUNT_ERROR_DB_NOT_OPENED, ("The database isn't connected.")); ACCOUNT_MEMSET(query, 0x00, ACCOUNT_SQL_LEN_MAX); |