fix core dump (SIGSEGV) when there are no arguments
authorFrantišek Kučera <franta-hg@frantovo.cz>
Mon, 04 May 2015 00:34:27 +0200
changeset 1509adb33465e4
parent 14 d81d0a119e76
child 16 65f51abd5fb8
fix core dump (SIGSEGV) when there are no arguments
c++/parameter-lister/CLI.cpp
     1.1 --- a/c++/parameter-lister/CLI.cpp	Mon May 04 00:29:17 2015 +0200
     1.2 +++ b/c++/parameter-lister/CLI.cpp	Mon May 04 00:34:27 2015 +0200
     1.3 @@ -43,7 +43,7 @@
     1.4  	}
     1.5  
     1.6  	/** Load environment variable */
     1.7 -	{
     1.8 +	if (args.size() > 0) {
     1.9  		string envName = args[0];
    1.10  		boost::optional<string> outputModule = getenv(envName);
    1.11