Skip to content

Commit 3818048

Browse files
Merge pull request #514 from robocoder/patch-2
silence warning that `result` may be uninitialized
2 parents e64e3ac + 2ddc54a commit 3818048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zend/value.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ Value::~Value()
292292
Php::Zval Value::detach(bool keeprefcount)
293293
{
294294
// the return value
295-
Php::Zval result;
295+
Php::Zval result {};
296296

297297
// copy the value
298298
ZVAL_COPY_VALUE(result, _val);

0 commit comments

Comments
 (0)