Merge pull request #88 from dhylands/mp-qstr-init

Make qstr_init reinitialize last_pool.
This commit is contained in:
Damien George 2014-01-05 15:38:15 -08:00
commit 8a7604da3b

View File

@ -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) { 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) { static qstr qstr_add(const char *str) {