Task #51900 - fixed.err

back to task #51900
download
Error: COMPILER_WARNING:
cups-2.4.11/cgi-bin/search.c: scope_hint: In function ‘cgiCompileSearch’
cups-2.4.11/cgi-bin/search.c:191:29: warning[-Wuse-after-free]: pointer ‘s_68’ may be used after ‘realloc’
#  191 |         sptr = temp + (sptr - s);
#      |                       ~~~~~~^~~~
cups-2.4.11/cgi-bin/search.c:179:24: note: call to ‘realloc’ here
#  179 |         temp = (char *)realloc(s, slen);
#      |                        ^~~~~~~~~~~~~~~~
#  189|   	}
#  190|   
#  191|->         sptr = temp + (sptr - s);
#  192|   	s    = temp;
#  193|         }