From 4eaecc5e8aa7bbaf9e58bf56560a8b1e67d0a8b7 Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Wed, 21 May 2025 22:30:20 +0100 Subject: Use NULL instead of 0 for null pointer constant. There were a few random places where 0 was being used as a null pointer constant. We have a NULL macro for this very purpose, use it. There is also some interest in actually deprecating the use of 0 as a null pointer constant in C. This was found with -Wzero-as-null-pointer-constant which was enabled for C in GCC 15 (not enabled with Wall or Wextra... yet). Link: --- src/event/quic/ngx_event_quic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/event/quic/ngx_event_quic.c') diff --git a/src/event/quic/ngx_event_quic.c b/src/event/quic/ngx_event_quic.c index 8df487773..6a59aaf93 100644 --- a/src/event/quic/ngx_event_quic.c +++ b/src/event/quic/ngx_event_quic.c @@ -964,7 +964,7 @@ ngx_quic_handle_payload(ngx_connection_t *c, ngx_quic_header_t *pkt) qc = ngx_quic_get_connection(c); qc->error = 0; - qc->error_reason = 0; + qc->error_reason = NULL; c->log->action = "decrypting packet"; -- cgit