Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fgetll(): Work around spurious GCC warning on realloc()
Claudio reports this: gcc (GCC) 14.0.1 20240411 (Red Hat 14.0.1-0) Fedora release 40 (Forty) misc.c: In function 'fgetll': misc.c:214:34: error: pointer 'cp' may be used after 'realloc' [-Werror=use-after-free] 214 | new_cp = realloc(cp, len + increase); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ misc.c:208:26: note: call to 'realloc' here 208 | new_cp = realloc(cp, len + increase); Completes b59ccbd Fixes #5470
- Loading branch information