nginx/src
Andrew Clayton c370ac8a51 Use NGX_CONF_OK in some function return checks.
The functions ngx_http_merge_types() & ngx_conf_merge_path_value()
return either NGX_CONF_OK aka NULL aka ((void *)0) (probably) or
NGX_CONF_ERROR aka ((void *)-1).

They don't return an integer constant which is what NGX_OK aka (0) is.

Lets use the right thing in the function return check.

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: <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117059>
2025-06-21 10:36:45 +04:00
..
core Core: added support for TCP keepalive parameters on macOS. 2025-05-27 01:59:02 +04:00
event Core: added support for TCP keepalive parameters on macOS. 2025-05-27 01:59:02 +04:00
http Use NGX_CONF_OK in some function return checks. 2025-06-21 10:36:45 +04:00
mail Mail: handling of LOGIN IMAP command untagged response. 2024-11-26 19:07:17 +04:00
misc Cpp test: added stream. 2020-10-13 07:44:09 +03:00
os Core: fix build without libcrypt. 2025-02-18 16:18:10 +03:00
stream Upstream: fixed passwords support for dynamic certificates. 2025-04-10 17:27:45 +04:00