@@ -127,8 +127,8 @@ cdef timestamp_encode(ConnectionSettings settings, WriteBuffer buf, obj):
127
127
128
128
cdef timestamp_decode(ConnectionSettings settings, FastReadBuffer buf):
129
129
cdef:
130
- int64_t seconds
131
- uint32_t microseconds
130
+ int64_t seconds = 0
131
+ uint32_t microseconds = 0
132
132
int32_t inf = _decode_time(buf, & seconds, & microseconds)
133
133
134
134
if inf > 0 :
@@ -163,8 +163,8 @@ cdef timestamptz_encode(ConnectionSettings settings, WriteBuffer buf, obj):
163
163
164
164
cdef timestamptz_decode(ConnectionSettings settings, FastReadBuffer buf):
165
165
cdef:
166
- int64_t seconds
167
- uint32_t microseconds
166
+ int64_t seconds = 0
167
+ uint32_t microseconds = 0
168
168
int32_t inf = _decode_time(buf, & seconds, & microseconds)
169
169
170
170
if inf > 0 :
@@ -191,8 +191,8 @@ cdef time_encode(ConnectionSettings settings, WriteBuffer buf, obj):
191
191
192
192
cdef time_decode(ConnectionSettings settings, FastReadBuffer buf):
193
193
cdef:
194
- int64_t seconds
195
- uint32_t microseconds
194
+ int64_t seconds = 0
195
+ uint32_t microseconds = 0
196
196
197
197
_decode_time(buf, & seconds, & microseconds)
198
198
@@ -243,8 +243,8 @@ cdef interval_decode(ConnectionSettings settings, FastReadBuffer buf):
243
243
cdef:
244
244
int32_t days
245
245
int32_t months
246
- int64_t seconds
247
- uint32_t microseconds
246
+ int64_t seconds = 0
247
+ uint32_t microseconds = 0
248
248
249
249
_decode_time(buf, & seconds, & microseconds)
250
250
days = hton.unpack_int32(buf.read(4 ))
0 commit comments