From d986b582c0c361c576a9483c301454acd93b36c5 Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Sun, 5 Jan 2014 11:55:23 -0800 Subject: Make qstr_init reinitialize last_pool. This causes the pool to get reinitialized properly on a soft-reset. --- py/qstr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'py/qstr.c') diff --git a/py/qstr.c b/py/qstr.c index 0ed7aa9a24..93ae3ab665 100644 --- a/py/qstr.c +++ b/py/qstr.c @@ -36,10 +36,10 @@ const static qstr_pool_t const_pool = { }, }; -static qstr_pool_t *last_pool = (qstr_pool_t*)&const_pool; // we won't modify the const_pool since it has no allocated room left +static qstr_pool_t *last_pool; void qstr_init(void) { - // nothing to do! + last_pool = (qstr_pool_t*)&const_pool; // we won't modify the const_pool since it has no allocated room left } static qstr qstr_add(const char *str) { -- cgit v1.2.3