From 1daf0ebd1ff594c74142f38cd2ffcec19766ed64 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@llnl.gov> Date: Mon, 9 Nov 2009 18:11:15 +0000 Subject: [PATCH] svn merge -r18989:19000 https://eris.llnl.gov/svn/slurm/branches/slurm-2.0 --- NEWS | 2 +- src/sacct/print.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 41fe5f49959..1eee5779ee5 100644 --- a/NEWS +++ b/NEWS @@ -286,7 +286,7 @@ documents those changes that are of interest to users and admins. -- Applied patch from Mark Grondona that fixes the validation of the PluginDir to support the colon separated list of directories as documented. -- BLUEGENE - squeue -o %R now prints more readable info for small blocks - + -- sacct - fixed garbage being printed out on uninitialized variable. * Changes in SLURM 2.0.7 ======================== -- Fix bug in select/cons_res when nodes are configured in more than one diff --git a/src/sacct/print.c b/src/sacct/print.c index 48a9144c3b1..ec612a21ba3 100644 --- a/src/sacct/print.c +++ b/src/sacct/print.c @@ -138,7 +138,7 @@ void print_fields(type_t type, void *object) while((field = list_next(print_fields_itr))) { char *tmp_char = NULL; int tmp_int = NO_VAL, tmp_int2 = NO_VAL; - + memset(&outbuf, 0, sizeof(outbuf)); switch(field->type) { case PRINT_ALLOC_CPUS: switch(type) { @@ -672,7 +672,7 @@ void print_fields(type_t type, void *object) default: tmp_int = NO_VAL; break; - } + } if(tmp_int != NO_VAL) convert_num_unit((float)tmp_int, outbuf, sizeof(outbuf), -- GitLab