diff options
| author | Dave Hylands <dhylands@gmail.com> | 2014-01-05 11:55:23 -0800 |
|---|---|---|
| committer | Dave Hylands <dhylands@gmail.com> | 2014-01-05 12:08:55 -0800 |
| commit | d986b582c0c361c576a9483c301454acd93b36c5 (patch) | |
| tree | aed52027769c1ee52f1ffd8f565cf3bd70335c67 | |
| parent | 12e2656472bf53e467c066eda6f3e177a97210ca (diff) | |
Make qstr_init reinitialize last_pool.
This causes the pool to get reinitialized properly on a soft-reset.
| -rw-r--r-- | py/qstr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |
