Welcome! Log In Create A New Profile

Advanced

[njs] Fixed typos introduced in 99b9f83e4d4d.

Dmitry Volyntsev
January 31, 2023 11:38AM
details: https://hg.nginx.org/njs/rev/4f1e0dcd3c91
branches:
changeset: 2033:4f1e0dcd3c91
user: Dmitry Volyntsev <xeioex@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;
}

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Fixed typos introduced in 99b9f83e4d4d.

Dmitry Volyntsev 391 January 31, 2023 11:38AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 287
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready