From b0afb8fe0ff1d87165af9df61501197a06240dda Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Sun, 28 Dec 2025 12:13:40 +0100 Subject: Sync with Gnulib stable-202507 code (a8ac9f9ce5) --- gl/xmalloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gl/xmalloc.c') diff --git a/gl/xmalloc.c b/gl/xmalloc.c index 5befdab7..8a715807 100644 --- a/gl/xmalloc.c +++ b/gl/xmalloc.c @@ -1,6 +1,6 @@ /* xmalloc.c -- malloc with out of memory checking - Copyright (C) 1990-2000, 2002-2006, 2008-2024 Free Software Foundation, Inc. + Copyright (C) 1990-2000, 2002-2006, 2008-2025 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -64,7 +64,7 @@ void * xrealloc (void *p, size_t s) { void *r = realloc (p, s); - if (!r && (!p || s)) + if (!r) xalloc_die (); return r; } @@ -82,7 +82,7 @@ void * xreallocarray (void *p, size_t n, size_t s) { void *r = reallocarray (p, n, s); - if (!r && (!p || (n && s))) + if (!r) xalloc_die (); return r; } -- cgit v1.2.3-74-g34f1