]> git.ipfire.org Git - thirdparty/cups.git/commit
search.c: Fix build failure due new GCC 1132/head
authorZdenek Dohnal <zdohnal@redhat.com>
Tue, 7 Jan 2025 16:44:30 +0000 (17:44 +0100)
committerZdenek Dohnal <zdohnal@redhat.com>
Tue, 7 Jan 2025 16:44:30 +0000 (17:44 +0100)
commitd268e2b8cca6f9be02695d09fff6cbda92bd9dfa
tree9186e12311ba0fe1c552a6c0c1b7566902988a52
parent42151eccc0159bb428467b7fa26bc1a4cba233a3
search.c: Fix build failure due new GCC

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.
cgi-bin/search.c