Skip to content

Commit 60b1f59

Browse files
authored
fastcgi: Fix compile warning wrt safe_read() (#20887)
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) || | ^~~ ```
1 parent 5d2456f commit 60b1f59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/fastcgi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ static inline ssize_t safe_write(fcgi_request *req, const void *buf, size_t coun
944944
return n;
945945
}
946946

947-
static inline ssize_t safe_read(fcgi_request *req, const void *buf, size_t count)
947+
static inline ssize_t safe_read(fcgi_request *req, void *buf, size_t count)
948948
{
949949
int ret;
950950
size_t n = 0;

0 commit comments

Comments
 (0)