Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed segv

  • Loading branch information...
commit 333143377c4e061f8aff9b21cd90eda1e598dc71 1 parent 798c4cf
@chobie authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  src/render_base.c
  2. +1 −1  src/render_html.c
View
2  src/render_base.c
@@ -607,7 +607,7 @@ PHP_METHOD(sundown_render_base, postprocess)
*/
PHP_METHOD(sundown_render_base, __construct)
{
- zval *render_flags, *c_flags;
+ zval *render_flags = NULL, *c_flags = NULL;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,
"|z", &render_flags) == FAILURE) {
View
2  src/render_html.c
@@ -811,7 +811,7 @@ PHP_METHOD(sundown_render_html, __construct)
{
php_sundown_render_html_t *object;
struct php_sundown_renderopt_ex opt;
- zval *render_flags, *c_flags;
+ zval *render_flags = NULL, *c_flags = NULL;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,
"|z", &render_flags) == FAILURE) {
Please sign in to comment.
Something went wrong with that request. Please try again.