Skip to content

Commit

Permalink
don't initialize optional array
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Sep 21, 2010
1 parent 559c204 commit 1d2e4f9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions phpwkhtmltox.c
Expand Up @@ -85,10 +85,6 @@ PHP_FUNCTION(wkhtmltox_convert)
zval *global_params;
zval *object_params;

// initialize optional object_params array
ALLOC_INIT_ZVAL(object_params);
array_init(object_params);

// parse out parameters passed
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sa|a",
&format, &format_len, &global_params, &object_params) == FAILURE) {
Expand Down Expand Up @@ -138,8 +134,6 @@ PHP_FUNCTION(wkhtmltox_convert)
wkhtmltopdf_deinit();
}

zval_ptr_dtor(object_params);

RETVAL_BOOL(ret);
}

Expand Down

0 comments on commit 1d2e4f9

Please sign in to comment.