diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-12-28 12:13:40 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-12-28 12:13:40 +0100 |
| commit | b0afb8fe0ff1d87165af9df61501197a06240dda (patch) | |
| tree | 274ac6a96c53ef4c19ab4974ce24a06a233128c5 /gl/xmalloc.c | |
| parent | 68fc05381ee5fa0aee1413118fbb3d81ca888b09 (diff) | |
| download | monitoring-plugins-b0afb8fe0ff1d87165af9df61501197a06240dda.tar.gz | |
Sync with Gnulib stable-202507 code (a8ac9f9ce5)
Diffstat (limited to 'gl/xmalloc.c')
| -rw-r--r-- | gl/xmalloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 @@ | |||
| 1 | /* xmalloc.c -- malloc with out of memory checking | 1 | /* xmalloc.c -- malloc with out of memory checking |
| 2 | 2 | ||
| 3 | Copyright (C) 1990-2000, 2002-2006, 2008-2024 Free Software Foundation, Inc. | 3 | Copyright (C) 1990-2000, 2002-2006, 2008-2025 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This program is free software: you can redistribute it and/or modify | 5 | This program is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
| @@ -64,7 +64,7 @@ void * | |||
| 64 | xrealloc (void *p, size_t s) | 64 | xrealloc (void *p, size_t s) |
| 65 | { | 65 | { |
| 66 | void *r = realloc (p, s); | 66 | void *r = realloc (p, s); |
| 67 | if (!r && (!p || s)) | 67 | if (!r) |
| 68 | xalloc_die (); | 68 | xalloc_die (); |
| 69 | return r; | 69 | return r; |
| 70 | } | 70 | } |
| @@ -82,7 +82,7 @@ void * | |||
| 82 | xreallocarray (void *p, size_t n, size_t s) | 82 | xreallocarray (void *p, size_t n, size_t s) |
| 83 | { | 83 | { |
| 84 | void *r = reallocarray (p, n, s); | 84 | void *r = reallocarray (p, n, s); |
| 85 | if (!r && (!p || (n && s))) | 85 | if (!r) |
| 86 | xalloc_die (); | 86 | xalloc_die (); |
| 87 | return r; | 87 | return r; |
| 88 | } | 88 | } |
