cmdline: don't clear cmdline exec_file is arguments are provided on cmdline

This commit is contained in:
Robert Swiecki 2019-04-01 22:46:39 +02:00
parent 1f022a2187
commit 8d9aaec7f0

View File

@ -304,7 +304,6 @@ static bool setupArgv(nsjconf_t* nsjconf, int argc, char** argv, int optind) {
*/
if (optind < argc) {
nsjconf->argv.clear();
nsjconf->exec_file.clear();
for (int i = optind; i < argc; i++) {
nsjconf->argv.push_back(argv[i]);
}