Skip to content

Commit c83daa2

Browse files
author
Michael Fero
committed
fix: Updating variable declarations to be ANSI C89
1 parent 1000436 commit c83daa2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/src/Cassandra/DefaultAggregate.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,11 @@ PHP_METHOD(DefaultAggregate, initialCondition)
131131
self = PHP_CASSANDRA_GET_AGGREGATE(getThis());
132132
if (PHP5TO7_ZVAL_IS_UNDEF(self->initial_condition)) {
133133
const CassValue *value = cass_aggregate_meta_init_cond(self->meta);
134+
const CassDataType *data_type = NULL;
134135
if (!value) {
135136
return;
136137
}
137-
const CassDataType *data_type = cass_value_data_type(value);
138+
data_type = cass_value_data_type(value);
138139
if (!data_type) {
139140
return;
140141
}

0 commit comments

Comments
 (0)