Skip to content

Commit 7c85f6a

Browse files
committed
ensure variable is initialized
1 parent e00e247 commit 7c85f6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/ssl/SSLSocket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ typedef mp_uint_t (*readwrite_func)(ssl_sslsocket_obj_t *, const uint8_t *, mp_u
252252

253253
static mp_int_t readwrite_common(mp_obj_t self_in, readwrite_func fn, const uint8_t *buf, size_t size, int *errorcode) {
254254
ssl_sslsocket_obj_t *self = MP_OBJ_TO_PTR(self_in);
255-
mp_int_t ret;
255+
mp_int_t ret = -EIO;
256256
nlr_buf_t nlr;
257257
if (nlr_push(&nlr) == 0) {
258258
ret = fn(self, buf, size);

0 commit comments

Comments
 (0)