Change order of return value in autofill_manager_foreach_autofill_service() 46/215446/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 8 Oct 2019 07:34:13 +0000 (16:34 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 8 Oct 2019 07:34:13 +0000 (16:34 +0900)
Change-Id: I9a1e2fdd626bae17ee0d8f8380d2074e893502b6
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
manager/autofill_manager.c

index 4842630..2f23733 100644 (file)
@@ -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;