From 068d846fe4f627181a319418a17f6d54eb653999 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 21 Apr 2017 23:35:32 -0700 Subject: 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 --- menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'menu.c') diff --git a/menu.c b/menu.c index cd5cf0c..97eba82 100644 --- a/menu.c +++ b/menu.c @@ -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(); -- cgit v1.2.3