13 Mar
2014
13 Mar
'14
9:35 a.m.
Properly initialize the variables for them to NULL, so there is no crash because of trying to use rubbish pointers. Kind of followup of commit 289fd29f0bfbb94566d9780dd8ac3fe15e55541d. --- generator/php.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/php.ml b/generator/php.ml index 580b10f..c7e0a27 100644 --- a/generator/php.ml +++ b/generator/php.ml @@ -224,7 +224,7 @@ PHP_FUNCTION (guestfs_last_error) pr " char *optargs_t_%s = NULL;\n" n; pr " int optargs_t_%s_size = -1;\n" n | OStringList n -> - pr " zval *optargs_t_%s;\n" n + pr " zval *optargs_t_%s = NULL;\n" n ) optargs ); -- 1.8.3.1