summaryrefslogtreecommitdiffstats
path: root/src/sh_log_repeat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sh_log_repeat.c')
-rw-r--r--src/sh_log_repeat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sh_log_repeat.c b/src/sh_log_repeat.c
index 9285c82..1125662 100644
--- a/src/sh_log_repeat.c
+++ b/src/sh_log_repeat.c
@@ -58,11 +58,15 @@ static int free_slots = 0; /* free slots available */
#define SH_CLEANUP 256
+void * sh_dummy_g_array = NULL;
+
static struct gestalt * add_entry (unsigned char * flags, UINT16 * sum,
time_t ltime)
{
struct gestalt * array = NULL;
+ sh_dummy_g_array = (void*) &array;
+
start:
if (urec < nrec)
{
@@ -164,6 +168,8 @@ static struct gestalt * update_or_add (unsigned char * flags, UINT16 * sum,
unsigned int i;
struct gestalt * array = arec;
+ sh_dummy_g_array = (void*) &array;
+
memcpy(flint, flags, SH_NFIELDS);
for (i = 0; i < urec; ++i)