[php-src] PR #20887: fastcgi: Fix compile warning wrt safe_read()
| From: | ndossche | Date: | Fri, 09 Jan 2026 20:53:35 +0000 |
| Subject: | [php-src] PR #20887: fastcgi: Fix compile warning wrt safe_read() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34492@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/20887
Author: ndossche
This shouldn't be const. Fixes the following warning:
```
warning: variable 'hdr' is uninitialized when passed as a const pointer argument here
[-Wuninitialized-const-pointer]
1054 | if (safe_read(req, &hdr, sizeof(fcgi_header)) != sizeof(fcgi_header) ||
| ^~~
```