summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_status.c
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2022-09-06 09:40:54 +0800
committerZhidao HONG <z.hong@f5.com>2022-09-06 09:40:54 +0800
commit9d3b9dba40924229b0c4909b0a4c60d08214501c (patch)
treeedfa645362ee60c4cfd6fc85a8f23f1d0f895790 /src/nxt_status.c
parentb25ffe2bf30ea3d57e7e6e6cb9ec59e9a69fc8e9 (diff)
downloadunit-9d3b9dba40924229b0c4909b0a4c60d08214501c.tar.gz
unit-9d3b9dba40924229b0c4909b0a4c60d08214501c.tar.bz2
Status: fixed incorrect pointer in test operation.
Found by Coverity (CID 380755).
Diffstat (limited to 'src/nxt_status.c')
-rw-r--r--src/nxt_status.c6
1 files changed, 3 insertions, 3 deletions
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;
}