diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-12-28 12:50:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-28 12:50:39 +0100 |
| commit | e7dd07c8025b169b7b43b955066a7200d9cdf244 (patch) | |
| tree | 6e8c927cfc67f3708b91ac79df07707af26e4929 /gl/xmalloc.c | |
| parent | 828a9720b10814c5836d03aa35af05d196c4104b (diff) | |
| parent | b0afb8fe0ff1d87165af9df61501197a06240dda (diff) | |
| download | monitoring-plugins-e7dd07c8025b169b7b43b955066a7200d9cdf244.tar.gz | |
Merge pull request #2213 from RincewindsHat/update/gnulib
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 | } |
