aboutsummaryrefslogtreecommitdiff
path: root/darwin-bootstrap/bundle-loader.c
diff options
context:
space:
mode:
authorcomex2015-04-11 23:18:35 -0400
committercomex2015-04-11 23:18:35 -0400
commitce9a1568d11d3f93b5a1535067029e8262ca0a04 (patch)
tree159b8480fb14bf4948ac4a16880b5ae588477aa5 /darwin-bootstrap/bundle-loader.c
parentFix missing dereference, thanks to alexzielenski (diff)
downloadsubstitute-ce9a1568d11d3f93b5a1535067029e8262ca0a04.tar.gz
More bugfixes thanks to him.
Diffstat (limited to 'darwin-bootstrap/bundle-loader.c')
-rw-r--r--darwin-bootstrap/bundle-loader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/darwin-bootstrap/bundle-loader.c b/darwin-bootstrap/bundle-loader.c
index 754bd5c..b3c60d5 100644
--- a/darwin-bootstrap/bundle-loader.c
+++ b/darwin-bootstrap/bundle-loader.c
@@ -227,6 +227,8 @@ static void init() {
return;
}
const char *argv0 = (*_NSGetArgv())[0];
+ if (!argv0)
+ argv0 = "???";
void *bundle_list;
size_t bundle_list_size;
kr = substituted_hello(service, SUBSTITUTED_PROTO_VERSION, argv0,