diff options
author | Balazs Vinarz | 2022-12-04 22:45:08 +0100 |
---|---|---|
committer | Balazs Vinarz | 2022-12-04 22:45:08 +0100 |
commit | 5292cd206c3db80f8216bec7a7059e59786b7bac (patch) | |
tree | 1846367509f7f5abfb6d47c33d1191cc68a969eb /0003-gcc12.patch | |
parent | 7125939bf778795244e6001260dab7817c91a597 (diff) | |
download | aur-linux-ck-lts.tar.gz |
bump to version 5.10.157, remove gcc patch for subcmd-util
Diffstat (limited to '0003-gcc12.patch')
-rw-r--r-- | 0003-gcc12.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/0003-gcc12.patch b/0003-gcc12.patch deleted file mode 100644 index 797b251e7fcc..000000000000 --- a/0003-gcc12.patch +++ /dev/null @@ -1,31 +0,0 @@ -Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org> -Cc: Jakub Jelinek <jakub@redhat.com> - ---- - tools/lib/subcmd/subcmd-util.h | 9 ++++----- - 1 file changed, 4 insertions(+), 5 deletions(-) - -diff --git a/tools/lib/subcmd/subcmd-util.h b/tools/lib/subcmd/subcmd-util.h -index 794a375dad36..7009fc176636 100644 ---- a/tools/lib/subcmd/subcmd-util.h -+++ b/tools/lib/subcmd/subcmd-util.h -@@ -49,13 +49,12 @@ static NORETURN inline void die(const char *err, ...) - - static inline void *xrealloc(void *ptr, size_t size) - { -- void *ret = realloc(ptr, size); -- if (!ret && !size) -- ret = realloc(ptr, 1); -+ void *ret; -+ if (!size) -+ size = 1; -+ ret = realloc(ptr, size); - if (!ret) { - ret = realloc(ptr, size); -- if (!ret && !size) -- ret = realloc(ptr, 1); - if (!ret) - die("Out of memory, realloc failed"); - } --- -2.34.1 |