diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2017-09-01 11:35:55 -0700 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2017-09-01 11:35:55 -0700 |
commit | 3824fc38910f71c2c8cc623e788ff7eb09999642 (patch) | |
tree | 995af3faf995123ce001b9b41086af7d793d88f5 /stdlib/tst-atexit-common.c | |
parent | b30082799dfcd55ccbffce1dd74179d02ee1f41c (diff) | |
download | glibc-3824fc38910f71c2c8cc623e788ff7eb09999642.tar glibc-3824fc38910f71c2c8cc623e788ff7eb09999642.tar.gz glibc-3824fc38910f71c2c8cc623e788ff7eb09999642.tar.bz2 glibc-3824fc38910f71c2c8cc623e788ff7eb09999642.zip |
2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
* stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
Diffstat (limited to 'stdlib/tst-atexit-common.c')
-rw-r--r-- | stdlib/tst-atexit-common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/tst-atexit-common.c b/stdlib/tst-atexit-common.c index d6dcf08cdd..9ab8c1aea5 100644 --- a/stdlib/tst-atexit-common.c +++ b/stdlib/tst-atexit-common.c @@ -30,7 +30,10 @@ check that we support at least the minimum required. */ #define MAX_ATEXIT 32 -static char crumbs[MAX_ATEXIT]; +/* Arbitrary sequence matching current registrations. */ +const char expected[] = "00000000000000000000000003021121130211"; + +static char crumbs[sizeof (expected)]; static int next_slot = 0; /* Helper: flush stdout and _exit. */ @@ -71,9 +74,6 @@ fn3 (void) static void fn_final (void) { - /* Arbitrary sequence matching current registrations. */ - const char expected[] = "00000000000000000000000003021121130211"; - if (strcmp (crumbs, expected) == 0) _exit_with_flush (0); |