Commit d986b582 authored by Dave Hylands's avatar Dave Hylands
Browse files

Make qstr_init reinitialize last_pool.

This causes the pool to get reinitialized properly on a soft-reset.
parent 12e26564
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment