From: Igor Sysoev Date: Tue, 29 Mar 2016 10:38:18 +0000 (+0300) Subject: A fast exit from argument normalization loop. X-Git-Tag: 0.1.0~39 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=8a6ab197be0d0c386e92ed8350d6fc15643ae024;p=njs.git A fast exit from argument normalization loop. This also fixes an issue when SunC 5.9 does not set omitted array elements to a zero. --- diff --git a/njs/njs_vm.c b/njs/njs_vm.c index 92713737..df32542b 100644 --- a/njs/njs_vm.c +++ b/njs/njs_vm.c @@ -2474,8 +2474,10 @@ njs_normalize_args(njs_vm_t *vm, njs_value_t *args, uint8_t *args_types, break; case NJS_SKIP_ARG: - break; + + case 0: + return NJS_OK; } args++;