Someone wrote the argument parsing code that may set argv[i] to NULL...
Patch submitted by Philipp Schmid. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13369 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -221,6 +221,9 @@ parse_options(int argc, char *argv[])
|
|||||||
error("no input files");
|
error("no input files");
|
||||||
|
|
||||||
for (int i = 1; i < argc; ++i) {
|
for (int i = 1; i < argc; ++i) {
|
||||||
|
if (argv[i] == NULL)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (sFirstInputFile == NULL)
|
if (sFirstInputFile == NULL)
|
||||||
sFirstInputFile = argv[i];
|
sFirstInputFile = argv[i];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user