From: Peter Schiffer Date: Wed, 1 Jun 2016 11:34:51 +0000 (+0200) Subject: tapestat: more fixes for realloc X-Git-Tag: v11.3.5~24^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91ee860781ce6f787955d5a05b3dce803fb498e1;p=sysstat tapestat: more fixes for realloc Of course I forgot to assign new pointers from realloc to original variables. This patch fixes that. --- diff --git a/tapestat.c b/tapestat.c index 534f3c3..7caf4fa 100644 --- a/tapestat.c +++ b/tapestat.c @@ -224,6 +224,9 @@ void tape_check_tapes_and_realloc(void) exit(4); } + tape_old_stats = tape_old_stats_t; + tape_new_stats = tape_new_stats_t; + for (i = max_tape_drives; i < new_max_tape_drives; i++) { tape_old_stats[i].valid = TAPE_STATS_INVALID; tape_new_stats[i].valid = TAPE_STATS_INVALID;