diff options
author | Martin Willi <martin@revosec.ch> | 2014-02-20 11:20:45 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2014-02-20 11:45:51 +0100 |
commit | 1c667bce3fe0209b976ac8e3c3d32ec7a1530e9a (patch) | |
tree | b1abdfc3414a845c593fa1146450d72d98fbbcd1 /src/pki | |
parent | e80014f1e82788ffee5fc1a9c178729480adbee7 (diff) | |
download | strongswan-1c667bce3fe0209b976ac8e3c3d32ec7a1530e9a.tar.bz2 strongswan-1c667bce3fe0209b976ac8e3c3d32ec7a1530e9a.tar.xz |
pki: Make cmds array static, ensuring that it is zero-initialized
As pki --help relies on a zero-terminated array, make the actually non-public
cmds array static to ensure initialization.
Diffstat (limited to 'src/pki')
-rw-r--r-- | src/pki/command.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pki/command.c b/src/pki/command.c index 7ccbd96f4..b6966ee0b 100644 --- a/src/pki/command.c +++ b/src/pki/command.c @@ -29,7 +29,7 @@ /** * Registered commands. */ -command_t cmds[MAX_COMMANDS]; +static command_t cmds[MAX_COMMANDS]; /** * active command. @@ -274,4 +274,3 @@ int command_dispatch(int c, char *v[]) } return command_usage(c > 1 ? "invalid operation" : NULL); } - |