]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add missing chunk of patch from 1999-07-04.
authorUlrich Drepper <drepper@redhat.com>
Sat, 17 Jul 1999 23:44:47 +0000 (23:44 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 17 Jul 1999 23:44:47 +0000 (23:44 +0000)
malloc/malloc.c

index 31ab045a065009ccb0fe41355404eef7676c5579..a2b80a99975aebf34d44f79fbab31b51711cb566 100644 (file)
@@ -4436,13 +4436,10 @@ realloc_check(oldmem, bytes, caller)
   oldp = mem2chunk_check(oldmem);
   if(!oldp) {
     (void)mutex_unlock(&main_arena.mutex);
-    switch(check_action) {
-    case 1:
+    if (check_action & 1)
       fprintf(stderr, "realloc(): invalid pointer %p!\n", oldmem);
-      break;
-    case 2:
+    if (check_action & 2)
       abort();
-    }
     return malloc_check(bytes, NULL);
   }
   oldsize = chunksize(oldp);