diff options
Diffstat (limited to 'src/actionparser.c')
-rw-r--r-- | src/actionparser.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/actionparser.c b/src/actionparser.c index 1648372..5c6abf7 100644 --- a/src/actionparser.c +++ b/src/actionparser.c @@ -209,7 +209,7 @@ void determine_action(UserOpt *opt) { return; } - char actionName[STR_S]; + char actionName[STR_S] = ""; opt->action = parser_get_action(token, actionName); if (opt->action != CK_WRONG_ACTION) { LOG("Action to perform: %s", actionName); @@ -247,7 +247,7 @@ int get_config(UserOpt *opt) { ERR("Config needs a value"); return -1; } - char dir[STR_L]; + char dir[STR_L] = ""; realpath(token, dir); if (!util_is_dir(dir)) { ERR("%s is not a directory", token); @@ -314,7 +314,7 @@ void verbose() { } void get_possible_action_strings(char *dest, CkAction ckAction) { - char buf[STR_M]; + char buf[STR_M] = ""; switch (ckAction) { #define X(ACTION) \ case CKA_##ACTION: \ @@ -337,8 +337,8 @@ void get_possible_action_strings(char *dest, CkAction ckAction) { } void print_parser_error(UserOpt *opt) { - char errStr[STR_L]; - char names[STR_M]; + char errStr[STR_L] = ""; + char names[STR_M] = ""; get_possible_action_strings(names, opt->action); switch (opt->err) { @@ -375,7 +375,7 @@ void print_parser_error(UserOpt *opt) { } void print_parser_help() { - char names[STR_M]; + char names[STR_M] = ""; ckhelp("ck - the config keeper"); ckhelp("Usage:"); get_possible_action_strings(names, CKA_INIT); |