Skip to content
Snippets Groups Projects
Commit da84d1d7 authored by jette's avatar jette
Browse files

Fix for use of uninitialized variable

It would not cause any problem other than excess memory being
allocated, but was found by CLANG.
parent 14ba53b2
No related branches found
No related tags found
No related merge requests found
...@@ -577,7 +577,7 @@ _xlate_job_step_ids(char **rest) ...@@ -577,7 +577,7 @@ _xlate_job_step_ids(char **rest)
/* Shift args if job IDs are comma separated. /* Shift args if job IDs are comma separated.
* Commas may be embedded in the task IDs, so we can't * Commas may be embedded in the task IDs, so we can't
* simply split the string on commas. */ * simply split the string on commas. */
if ((j + 4) >= id_args_size) { if ((i + 4) >= id_args_size) {
id_args_size *= 2; id_args_size *= 2;
id_args = xrealloc(id_args, sizeof(char *) * id_args = xrealloc(id_args, sizeof(char *) *
id_args_size); id_args_size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment