diff options
author | Martijn Otto <martijn.otto@copernica.com> | 2016-05-26 09:49:23 +0200 |
---|---|---|
committer | Martijn Otto <martijn.otto@copernica.com> | 2016-05-26 09:49:23 +0200 |
commit | 2c669069c58a6f855a7701b416740f8bdbd25bbc (patch) | |
tree | aaaf5785eb2a58c910a847dfe55d3c5b1a9248ac | |
parent | 648486baabbc0b03dd0effb3be231ee5139bc50f (diff) |
Fix uninitialized data when initializing ini entriesHEADv1.5.3.git.20160526master
-rw-r--r-- | zend/ini.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zend/ini.cpp b/zend/ini.cpp index 849f6c4..4ddfbbc 100644 --- a/zend/ini.cpp +++ b/zend/ini.cpp @@ -21,6 +21,7 @@ void Ini::fill(zend_ini_entry_def *ini_entry, int module_number) { ini_entry->modifiable = static_cast<int>(_place); ini_entry->name = _name.data(); + ini_entry->name_length = _name.size(); ini_entry->on_modify = OnUpdateString; ini_entry->mh_arg1 = nullptr; #ifdef ZTS @@ -30,6 +31,7 @@ void Ini::fill(zend_ini_entry_def *ini_entry, int module_number) #endif ini_entry->mh_arg3 = nullptr; ini_entry->value = _value.data(); + ini_entry->value_length = _value.size(); ini_entry->displayer = nullptr; } |