[njs] Fixed typos introduced in 99b9f83e4d4d.
Dmitry Volyntsev
xeioex at nginx.com
Tue Jan 31 16:36:05 UTC 2023
details: https://hg.nginx.org/njs/rev/4f1e0dcd3c91
branches:
changeset: 2033:4f1e0dcd3c91
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Mon Jan 30 17:43:59 2023 -0800
description:
Fixed typos introduced in 99b9f83e4d4d.
Found by Coverity (CID 1520597, 1520598, 1520599).
diffstat:
external/njs_xml_module.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 2a8800b7fa34 -r 4f1e0dcd3c91 external/njs_xml_module.c
--- a/external/njs_xml_module.c Mon Jan 30 17:35:58 2023 -0800
+++ b/external/njs_xml_module.c Mon Jan 30 17:43:59 2023 -0800
@@ -1004,7 +1004,7 @@ njs_xml_ext_canonicalization(njs_vm_t *v
nodes = xmlXPathNodeSetCreate(current);
if (njs_slow_path(nodes == NULL)) {
- njs_vm_memory_pool(vm);
+ njs_vm_memory_error(vm);
goto error;
}
@@ -1184,7 +1184,7 @@ njs_xml_nset_create(njs_vm_t *vm, xmlDoc
nset = njs_mp_zalloc(njs_vm_memory_pool(vm), sizeof(njs_xml_nset_t));
if (njs_slow_path(nset == NULL)) {
- njs_vm_memory_pool(vm);
+ njs_vm_memory_error(vm);
return NULL;
}
@@ -1213,7 +1213,7 @@ njs_xml_nset_children(njs_vm_t *vm, xmlN
nodes = xmlXPathNodeSetCreate(parent);
if (njs_slow_path(nodes == NULL)) {
- njs_vm_memory_pool(vm);
+ njs_vm_memory_error(vm);
return NULL;
}
More information about the nginx-devel
mailing list