Fix segfault in 'gmx -h'
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 2 Feb 2014 12:22:33 +0000 (14:22 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sun, 2 Feb 2014 19:33:31 +0000 (20:33 +0100)
commitfdaf4c434caba2085d121c528018f33dee5bf8a3
tree89b06427f238079be5721e9d7eae5d401a3482ad
parentf29962a594b10a7a1b7a15f50e96aaa1479efc93
Fix segfault in 'gmx -h'

Combination of two recent changes caused 'gmx -h' to segfault because of
an uninitialized variable.  This fix is in cmdlinehelpcontext.cpp.

Added a test for this case, which required some extra functionality in
the module manager.  This is all the other changes.

Change-Id: Ie845c287975575c51c42763c03ac99bca047699c
src/gromacs/commandline/cmdlinehelpcontext.cpp
src/gromacs/commandline/cmdlinehelpmodule.cpp
src/gromacs/commandline/cmdlinehelpmodule.h
src/gromacs/commandline/cmdlinemodulemanager.cpp
src/gromacs/commandline/cmdlinemodulemanager.h
src/gromacs/commandline/tests/cmdlinemodulemanager.cpp