From 9d3b9dba40924229b0c4909b0a4c60d08214501c Mon Sep 17 00:00:00 2001 From: Zhidao HONG Date: Tue, 6 Sep 2022 09:40:54 +0800 Subject: Status: fixed incorrect pointer in test operation. Found by Coverity (CID 380755). --- src/nxt_status.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/nxt_status.c b/src/nxt_status.c index 12280019..f8002e86 100644 --- a/src/nxt_status.c +++ b/src/nxt_status.c @@ -58,7 +58,7 @@ nxt_status_get(nxt_status_report_t *report, nxt_mp_t *mp) nxt_conf_set_member_integer(obj, &total_str, report->requests, 0); apps = nxt_conf_create_object(mp, report->apps_count); - if (nxt_slow_path(obj == NULL)) { + if (nxt_slow_path(apps == NULL)) { return NULL; } @@ -81,7 +81,7 @@ nxt_status_get(nxt_status_report_t *report, nxt_mp_t *mp) } obj = nxt_conf_create_object(mp, 3); - if (nxt_slow_path(app_obj == NULL)) { + if (nxt_slow_path(obj == NULL)) { return NULL; } @@ -92,7 +92,7 @@ nxt_status_get(nxt_status_report_t *report, nxt_mp_t *mp) nxt_conf_set_member_integer(obj, &idle_str, app->idle_processes, 2); obj = nxt_conf_create_object(mp, 1); - if (nxt_slow_path(app_obj == NULL)) { + if (nxt_slow_path(obj == NULL)) { return NULL; } -- cgit