aboutsummaryrefslogtreecommitdiff
path: root/darwin-bootstrap/bundle-loader.c
diff options
context:
space:
mode:
authorcomex2015-07-11 14:46:36 -0400
committercomex2015-07-11 14:49:05 -0400
commit8af10299f6f60c5911c0c389589360069be28a35 (patch)
treeb4585250723c1bae113b06a62ab920013e4e4f78 /darwin-bootstrap/bundle-loader.c
parentput back notifyd exclusion - still an issue :< (diff)
downloadsubstitute-8af10299f6f60c5911c0c389589360069be28a35.tar.gz
better fix
Diffstat (limited to 'darwin-bootstrap/bundle-loader.c')
-rw-r--r--darwin-bootstrap/bundle-loader.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/darwin-bootstrap/bundle-loader.c b/darwin-bootstrap/bundle-loader.c
index 9006bf0..90ebbf2 100644
--- a/darwin-bootstrap/bundle-loader.c
+++ b/darwin-bootstrap/bundle-loader.c
@@ -98,7 +98,9 @@ enum bundle_test_result {
static enum bundle_test_result do_bundle_test_type(
xxpc_object_t info, const char *key, bool (*test)(const char *)) {
xxpc_object_t values = xxpc_dictionary_get_value(info, key);
- if (!values || xxpc_get_type(values) != XXPC_TYPE_ARRAY)
+ if (!values)
+ return BUNDLE_TEST_RESULT_EMPTY;
+ if (xxpc_get_type(values) != XXPC_TYPE_ARRAY)
return BUNDLE_TEST_RESULT_INVALID;
size_t count = xxpc_array_get_count(values);
if (count == 0)