Fix some problems found by Coverity static analysis.

This commit is contained in:
Milan Broz
2012-09-19 13:58:00 +02:00
parent bec7fcb14a
commit 89e09afdf6
8 changed files with 33 additions and 20 deletions

View File

@@ -54,6 +54,7 @@ static int opt_test_passphrase = 0;
static const char **action_argv;
static int action_argc;
static const char *null_action_argv[] = {NULL, NULL};
static int action_create(int arg);
static int action_remove(int arg);
@@ -1125,7 +1126,6 @@ int main(int argc, const char **argv)
struct action_type *action;
const char *aname;
int r;
const char *null_action_argv[] = {NULL};
crypt_set_log_callback(NULL, tool_log, NULL);