diff options
-rw-r--r-- | py/objstr.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/py/objstr.c b/py/objstr.c index 8824363637..e221982c57 100644 --- a/py/objstr.c +++ b/py/objstr.c @@ -1913,9 +1913,6 @@ mp_int_t mp_obj_str_get_buffer(mp_obj_t self_in, mp_buffer_info_t *bufinfo, mp_u return 0; } else { // can't write to a string - bufinfo->buf = NULL; - bufinfo->len = 0; - bufinfo->typecode = -1; return 1; } } |