# HG changeset patch # User František Kučera # Date 1430692467 -7200 # Node ID 09adb33465e4c07936491822bcec85b021376ee5 # Parent d81d0a119e7675049ccd75b4ba9e1a9d8c023a98 fix core dump (SIGSEGV) when there are no arguments diff -r d81d0a119e76 -r 09adb33465e4 c++/parameter-lister/CLI.cpp --- a/c++/parameter-lister/CLI.cpp Mon May 04 00:29:17 2015 +0200 +++ b/c++/parameter-lister/CLI.cpp Mon May 04 00:34:27 2015 +0200 @@ -43,7 +43,7 @@ } /** Load environment variable */ - { + if (args.size() > 0) { string envName = args[0]; boost::optional outputModule = getenv(envName);