summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2014-01-05 11:55:23 -0800
committerDave Hylands <dhylands@gmail.com>2014-01-05 12:08:55 -0800
commitd986b582c0c361c576a9483c301454acd93b36c5 (patch)
treeaed52027769c1ee52f1ffd8f565cf3bd70335c67
parent12e2656472bf53e467c066eda6f3e177a97210ca (diff)
downloadmicropython-d986b582c0c361c576a9483c301454acd93b36c5.tar.gz
micropython-d986b582c0c361c576a9483c301454acd93b36c5.zip
Make qstr_init reinitialize last_pool.
This causes the pool to get reinitialized properly on a soft-reset.
-rw-r--r--py/qstr.c4
1 files changed, 2 insertions, 2 deletions
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) {