fix issue with invalidating pointer to last procsub; fix boundary issues with small reallocs

This commit is contained in:
Chet Ramey
2024-07-26 09:30:30 -04:00
parent 6c70309275
commit d5ef283cbd
8 changed files with 59 additions and 8 deletions
+10
View File
@@ -5688,6 +5688,16 @@ uw_pop_args (void *ignore)
pop_args ();
}
#if defined (ARRAY_VARS)
/* Push the current input filename onto BASH_SOURCE. This is where we can
apply any policy. */
void
push_source (ARRAY *a, char *filename)
{
array_push (a, filename);
}
#endif
/*************************************************
* *
* Functions to manage special variables *