py/repl: Initialise q_last variable to prevent compiler warnings.
Some older compilers cannot deduce that q_last is always written to before being read.
This commit is contained in:
parent
095d397017
commit
6046e68fe1
@ -175,7 +175,7 @@ size_t mp_repl_autocomplete(const char *str, size_t len, const mp_print_t *print
|
|||||||
// look for matches
|
// look for matches
|
||||||
const char *match_str = NULL;
|
const char *match_str = NULL;
|
||||||
size_t match_len = 0;
|
size_t match_len = 0;
|
||||||
qstr q_first = 0, q_last;
|
qstr q_first = 0, q_last = 0;
|
||||||
for (qstr q = MP_QSTR_ + 1; q < nqstr; ++q) {
|
for (qstr q = MP_QSTR_ + 1; q < nqstr; ++q) {
|
||||||
size_t d_len;
|
size_t d_len;
|
||||||
const char *d_str = (const char*)qstr_data(q, &d_len);
|
const char *d_str = (const char*)qstr_data(q, &d_len);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user