summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-05 15:38:15 -0800
committerDamien George <damien.p.george@gmail.com>2014-01-05 15:38:15 -0800
commit8a7604da3bba2f800521f70419ed1a81f11c84f5 (patch)
treeaed52027769c1ee52f1ffd8f565cf3bd70335c67
parent12e2656472bf53e467c066eda6f3e177a97210ca (diff)
parentd986b582c0c361c576a9483c301454acd93b36c5 (diff)
downloadmicropython-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.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) {