diff options
Diffstat (limited to 'php/ext/google/protobuf/def.c')
-rw-r--r-- | php/ext/google/protobuf/def.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/php/ext/google/protobuf/def.c b/php/ext/google/protobuf/def.c index cb2c7201..fa33830b 100644 --- a/php/ext/google/protobuf/def.c +++ b/php/ext/google/protobuf/def.c @@ -773,6 +773,7 @@ static size_t classname_len_max(const char *fullname, static bool is_reserved(const char *segment, int length) { bool result; char* lower = ALLOC_N(char, length + 1); + memset(lower, 0, length + 1); memcpy(lower, segment, length); int i = 0; while(lower[i]) { |