Make qstr_init reinitialize last_pool.

This causes the pool to get reinitialized properly on a soft-reset.
pull/88/head
Dave Hylands 2014-01-05 11:55:23 -08:00
rodzic 12e2656472
commit d986b582c0
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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) {