]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Make pointer in tst-realloc volatile also
authorStan Shebs <stanshebs@google.com>
Fri, 8 Jun 2018 20:47:29 +0000 (13:47 -0700)
committerStan Shebs <stanshebs@google.com>
Wed, 1 May 2019 01:18:24 +0000 (18:18 -0700)
malloc/tst-realloc.c

index 5643c3ae163a17a70065ae975e63e03d3faf5579..071d9dc71cb0e51d111cf20edd15aa9e2c5e5c40 100644 (file)
@@ -33,7 +33,7 @@ merror (const char *msg)
 static int
 do_test (void)
 {
-  void *p;
+  void *volatile p;
   unsigned char *c;
   int save, i, ok;