]> granicus.if.org Git - php/commitdiff
Inline a ZEND_NUM_ARGS() variable
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 6 Apr 2020 09:41:44 +0000 (11:41 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 6 Apr 2020 09:41:44 +0000 (11:41 +0200)
ext/hash/hash.c

index 27912bbd101a825dbd7bff1f951fa711037d6a1a..a0ab20e9431cf18ce9e4ab2c805f733fe8e6e1f4 100644 (file)
@@ -346,12 +346,11 @@ PHP_FUNCTION(hash_init)
 {
        zend_string *algo, *key = NULL;
        zend_long options = 0;
-       int argc = ZEND_NUM_ARGS();
        void *context;
        const php_hash_ops *ops;
        php_hashcontext_object *hash;
 
-       if (zend_parse_parameters(argc, "S|lS", &algo, &options, &key) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|lS", &algo, &options, &key) == FAILURE) {
                RETURN_THROWS();
        }