openresty / echo-nginx-module

An Nginx module for bringing the power of "echo", "sleep", "time" and more to Nginx's config file
http://wiki.nginx.org/NginxHttpEchoModule
BSD 2-Clause "Simplified" License
1.17k stars 254 forks source link

src/ngx_http_echo_subrequest.c: fix minor issue found by Coverity #96

Closed chipitsine closed 2 years ago

chipitsine commented 3 years ago
661    args.data = NULL;
662    args.len = 0;
663
   CID 149849 (#1 of 1): Uninitialized scalar variable (UNINIT)5. uninit_use_in_call: Using uninitialized value flags when calling ngx_http_parse_unsafe_uri. [show details]
664    if (ngx_http_parse_unsafe_uri(r, uri, &args, &flags) != NGX_OK) {
665        ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
666                       "echo_exec sees unsafe uri: \"%V\"",
667                       uri);
668        return NGX_ERROR;
669    }