Skip to content

Commit ca6d5ac

Browse files
authored
Merge pull request #85 from craveica/88
Fix 88
2 parents 181d9be + 428dffe commit ca6d5ac

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ext/src/Cassandra/Timestamp.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ PHP_METHOD(Timestamp, microtime)
113113
PHP_METHOD(Timestamp, toDateTime)
114114
{
115115
cassandra_timestamp *self;
116-
zval *datetime = NULL;
116+
zval datetime_object;
117+
zval *datetime = &datetime_object;
117118
php_date_obj *datetime_obj = NULL;
118119
char *str;
119120
int str_len;

ext/src/Cassandra/Timeuuid.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ PHP_METHOD(Timeuuid, time)
110110
PHP_METHOD(Timeuuid, toDateTime)
111111
{
112112
cassandra_uuid *self;
113-
zval *datetime = NULL;
113+
zval datetime_object;
114+
zval *datetime = &datetime_object;
114115
php_date_obj *datetime_obj = NULL;
115116
char *str;
116117
int str_len;

0 commit comments

Comments
 (0)