From 7c8bb95e3cacd4ad0616ff959ba785e5dddd006f Mon Sep 17 00:00:00 2001 From: Rose Date: Fri, 20 Sep 2024 17:25:37 -0400 Subject: [PATCH] Use xpc_dictionary_create_empty to create empty dictionaries xpc_dictionary_create has Nonnull annotated for some of its parameters. We should just do xpc_dictionary_create_empty to avoid warnings and be safe. --- backend/ipp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/ipp.c b/backend/ipp.c index 23255b71d..9f783b859 100644 --- a/backend/ipp.c +++ b/backend/ipp.c @@ -3352,7 +3352,7 @@ run_as_user(char *argv[], /* I - Command-line arguments */ * Try starting the backend... */ - request = xpc_dictionary_create(NULL, NULL, 0); + request = xpc_dictionary_create_empty(); xpc_dictionary_set_int64(request, "command", kPMStartJob); xpc_dictionary_set_string(request, "device-uri", device_uri); xpc_dictionary_set_string(request, "job-id", argv[1]); @@ -3405,7 +3405,7 @@ run_as_user(char *argv[], /* I - Command-line arguments */ * Then wait for the backend to finish... */ - request = xpc_dictionary_create(NULL, NULL, 0); + request = xpc_dictionary_create_empty(); xpc_dictionary_set_int64(request, "command", kPMWaitForJob); xpc_dictionary_set_fd(request, "stderr", 2);