From 91ee860781ce6f787955d5a05b3dce803fb498e1 Mon Sep 17 00:00:00 2001 From: Peter Schiffer Date: Wed, 1 Jun 2016 13:34:51 +0200 Subject: [PATCH] tapestat: more fixes for realloc Of course I forgot to assign new pointers from realloc to original variables. This patch fixes that. --- tapestat.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.40.0