Skip to content

Commit

Permalink
silence warning that result may be uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
robocoder committed Nov 20, 2023
1 parent 72e1960 commit 2ddc54a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zend/value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ Value::~Value()
Php::Zval Value::detach(bool keeprefcount)
{
// the return value
Php::Zval result;
Php::Zval result {};

// copy the value
ZVAL_COPY_VALUE(result, _val);
Expand Down

0 comments on commit 2ddc54a

Please sign in to comment.