diff options
author | comex | 2015-04-11 23:18:35 -0400 |
---|---|---|
committer | comex | 2015-04-11 23:18:35 -0400 |
commit | ce9a1568d11d3f93b5a1535067029e8262ca0a04 (patch) | |
tree | 159b8480fb14bf4948ac4a16880b5ae588477aa5 /darwin-bootstrap/bundle-loader.c | |
parent | Fix missing dereference, thanks to alexzielenski (diff) | |
download | substitute-ce9a1568d11d3f93b5a1535067029e8262ca0a04.tar.gz |
More bugfixes thanks to him.
Diffstat (limited to 'darwin-bootstrap/bundle-loader.c')
-rw-r--r-- | darwin-bootstrap/bundle-loader.c | 2 |
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, |