]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
search.c: Fix build failure due new GCC
authorzdohnal <zdohnal@redhat.com>
Tue, 7 Jan 2025 17:41:52 +0000 (18:41 +0100)
committerGitHub <noreply@github.com>
Tue, 7 Jan 2025 17:41:52 +0000 (18:41 +0100)
The warning by GCC is false positive because we don't access the freed memory in the scope, only the pointer memory which contained address of allocated memory on the heap, and used that for updating index pointer.

Using ptrdiff_t struct before realloc works the warning around.


Trivial merge