]> git.ipfire.org Git - thirdparty/cups.git/commit
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)
commit5c2b192dd36fb21a4e0a910508ad6e96d4627b36
tree9186e12311ba0fe1c552a6c0c1b7566902988a52
parent42151eccc0159bb428467b7fa26bc1a4cba233a3
parentd268e2b8cca6f9be02695d09fff6cbda92bd9dfa
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.