From 5f17003f0c280334f3b1c3ed9b9658ea1b91a693 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Tue, 8 Oct 2019 16:34:13 +0900 Subject: [PATCH] Change order of return value in autofill_manager_foreach_autofill_service() Change-Id: I9a1e2fdd626bae17ee0d8f8380d2074e893502b6 Signed-off-by: Jihoon Kim --- manager/autofill_manager.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/manager/autofill_manager.c b/manager/autofill_manager.c index 4842630..2f23733 100644 --- a/manager/autofill_manager.c +++ b/manager/autofill_manager.c @@ -238,16 +238,16 @@ EXPORT_API int autofill_manager_foreach_autofill_service(autofill_manager_h amh, { int ret; - if (!amh || !callback) { - LOGW("[ERROR] parameter is NULL"); - return AUTOFILL_ERROR_INVALID_PARAMETER; - } - if (!check_privilege(AUTOFILL_MANAGER_PRIVILEGE)) { LOGW("[ERROR] Permission denied"); return AUTOFILL_ERROR_PERMISSION_DENIED; } + if (!amh || !callback) { + LOGW("[ERROR] parameter is NULL"); + return AUTOFILL_ERROR_INVALID_PARAMETER; + } + if (!amh->rpc_h) { LOGW("[ERROR] rpc handle is NULL\n"); return AUTOFILL_ERROR_OPERATION_FAILED; -- 2.7.4