updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / par2cmdline / 09-Fixing-processing-of-the-first-file-parameter-the-ou.patch
blob4c1bf3334a7a855dab7a1d985f4d50e88e2880d1
1 --- a/commandline.cpp
2 +++ b/commandline.cpp
3 @@ -539,7 +539,7 @@ bool CommandLine::Parse(int argc, char *argv[])
4 list<string> *filenames;
5 filenames = new list<string>;
7 - if (argv[0][0] == '-')
8 + if (argv[0][0] == '-' && argv[0][1] == '\0')
10 while(true)
12 @@ -550,6 +550,8 @@ bool CommandLine::Parse(int argc, char *argv[])
13 break;
16 + else
17 + filenames->push_back(argv[0]);
19 list<string>::iterator fn = filenames->begin();
20 while (fn != filenames->end())