diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-04-21 23:35:32 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-04-21 23:35:32 -0700 |
commit | 068d846fe4f627181a319418a17f6d54eb653999 (patch) | |
tree | 7be1693433822038fc5ea8950c274ac5a05f08a3 /menu.c | |
parent | e73ff9ec75a85c187c0a46bd4a79bf76282dd871 (diff) |
Fix a deficiency in the way types were handled in my ternary tree. Fixes in which some paths that were constructed from a template with variables would sometimes get an extra garbage character thrown in
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -166,7 +166,7 @@ void * menu_write_w(uint32_t address, void * context, uint16_t value) menu_context *menu = gen->extra; if (!menu) { gen->extra = menu = calloc(1, sizeof(menu_context)); - menu->curpath = tern_find_path(config, "ui\0initial_path\0").ptrval; + menu->curpath = tern_find_path(config, "ui\0initial_path\0", TVAL_PTR).ptrval; if (!menu->curpath){ #ifdef __ANDROID__ menu->curpath = get_external_storage_path(); |