Commit 580d9ce8 authored by Kenneth Raffenetti's avatar Kenneth Raffenetti
Browse files

hydra: fix zero-length format string warnings


Signed-off-by: default avatarJunchao Zhang <jczhang@mcs.anl.gov>
parent b05a26f9
...@@ -151,7 +151,7 @@ static HYD_status help_fn(char *arg, char ***argv) ...@@ -151,7 +151,7 @@ static HYD_status help_fn(char *arg, char ***argv)
HYD_status status = HYD_SUCCESS; HYD_status status = HYD_SUCCESS;
help_help_fn(); help_help_fn();
HYDU_ERR_SETANDJUMP(status, HYD_GRACEFUL_ABORT, ""); HYDU_ERR_SETANDJUMP(status, HYD_GRACEFUL_ABORT, "%s", "");
fn_exit: fn_exit:
return status; return status;
...@@ -1227,7 +1227,7 @@ static HYD_status info_fn(char *arg, char ***argv) ...@@ -1227,7 +1227,7 @@ static HYD_status info_fn(char *arg, char ***argv)
" Demux engines available: %s\n", " Demux engines available: %s\n",
HYDRA_AVAILABLE_DEMUXES); HYDRA_AVAILABLE_DEMUXES);
HYDU_ERR_SETANDJUMP(status, HYD_GRACEFUL_ABORT, ""); HYDU_ERR_SETANDJUMP(status, HYD_GRACEFUL_ABORT, "%s", "");
fn_exit: fn_exit:
return status; return status;
......
...@@ -144,7 +144,7 @@ static HYD_status match_arg(char ***argv_p, struct HYD_arg_match_table *match_ta ...@@ -144,7 +144,7 @@ static HYD_status match_arg(char ***argv_p, struct HYD_arg_match_table *match_ta
} }
else { else {
m->help_fn(); m->help_fn();
HYDU_ERR_SETANDJUMP(status, HYD_GRACEFUL_ABORT, ""); HYDU_ERR_SETANDJUMP(status, HYD_GRACEFUL_ABORT, "%s", "");
} }
} }
......
...@@ -89,7 +89,7 @@ HYD_status HYDU_strsplit(char *str, char **str1, char **str2, char sep) ...@@ -89,7 +89,7 @@ HYD_status HYDU_strsplit(char *str, char **str1, char **str2, char sep)
HYDU_FUNC_ENTER(); HYDU_FUNC_ENTER();
if (str == NULL) if (str == NULL)
HYDU_ERR_SETANDJUMP(status, HYD_INTERNAL_ERROR, ""); HYDU_ERR_SETANDJUMP(status, HYD_INTERNAL_ERROR, "%s", "");
*str1 = HYDU_strdup(str); *str1 = HYDU_strdup(str);
for (i = 0; (*str1)[i] && ((*str1)[i] != sep); i++); for (i = 0; (*str1)[i] && ((*str1)[i] != sep); i++);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment