From: Tobias Brunner Date: Fri, 13 Sep 2013 13:14:00 +0000 (+0200) Subject: pki: Don't print an error if no arguments are given X-Git-Tag: 5.1.1dr4~25^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed56c86ec1098d62f65580bb4889fb10cc1998cf;p=thirdparty%2Fstrongswan.git pki: Don't print an error if no arguments are given --- diff --git a/src/pki/command.c b/src/pki/command.c index a5e5b85284..984da59b4f 100644 --- a/src/pki/command.c +++ b/src/pki/command.c @@ -258,6 +258,6 @@ int command_dispatch(int c, char *v[]) return cmds[i].call(); } } - return command_usage("invalid operation"); + return command_usage(c > 1 ? "invalid operation" : NULL); }