Skip to content

Commit

Permalink
add memset of buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
dblitt committed Dec 12, 2024
1 parent 542b00a commit 778fd1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion batch_job/src/batch_queue_flux.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ static batch_queue_id_t batch_queue_flux_submit(struct batch_queue *q, struct ba
free(submit_command);

uint64_t flux_job_id;
memset(buffer, 0, sizeof(buffer));
while (fgets(buffer, sizeof(buffer), submit_pipe)) {
if (sscanf(buffer, "%" PRIu64, &flux_job_id) == 1) {
batch_queue_id_t job_id = job_count++;
Expand Down Expand Up @@ -336,7 +337,7 @@ static int batch_queue_flux_create(struct batch_queue *q)
return 0;
}

static int batch_queue_flux_free(struct batch_queue *Q)
static int batch_queue_flux_free(struct batch_queue *q)
{
if (flux_job_info_table) {
struct flux_job_info *info;
Expand Down

0 comments on commit 778fd1b

Please sign in to comment.