From 0b2dbe7d46ee888392907c60131b7f7652314175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 30 Jun 2005 20:42:35 +0000 Subject: [PATCH] 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 --- src/tools/rc/rc.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools/rc/rc.cpp b/src/tools/rc/rc.cpp index 6d289ccae7..f64f1c9b0a 100644 --- a/src/tools/rc/rc.cpp +++ b/src/tools/rc/rc.cpp @@ -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];