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:
Axel Dörfler
2005-06-30 20:42:35 +00:00
parent 1a3f15e929
commit 0b2dbe7d46
+3
View File
@@ -221,6 +221,9 @@ parse_options(int argc, char *argv[])
error("no input files");
for (int i = 1; i < argc; ++i) {
if (argv[i] == NULL)
continue;
if (sFirstInputFile == NULL)
sFirstInputFile = argv[i];