diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-05 15:38:15 -0800 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-05 15:38:15 -0800 |
commit | 8a7604da3bba2f800521f70419ed1a81f11c84f5 (patch) | |
tree | aed52027769c1ee52f1ffd8f565cf3bd70335c67 | |
parent | 12e2656472bf53e467c066eda6f3e177a97210ca (diff) | |
parent | d986b582c0c361c576a9483c301454acd93b36c5 (diff) | |
download | micropython-8a7604da3bba2f800521f70419ed1a81f11c84f5.tar.gz micropython-8a7604da3bba2f800521f70419ed1a81f11c84f5.zip |
Merge pull request #88 from dhylands/mp-qstr-init
Make qstr_init reinitialize last_pool.
-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) { |