diff options
Diffstat (limited to 'todo.c')
-rw-r--r-- | todo.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -13,17 +13,23 @@ int bbs_todo( term_screen *ts, const char *fname) int menu_input = 0; char menu_cmd = 0; int row = 0; + char *todo_fname = NULL; if ( ts == NULL ) return ret; if ( fname == NULL ) - fname = CONFIG_TODO_DEFAULT_FILE; + { + todo_fname = CONFIG_TODO_DEFAULT_FILE; + } else + { + todo_fname = fname; + } //LOAD DATA FROM FILE TO LINKED LIST List *todo_list = llist_new(); - f_file *file = f_file_open( fname, F_FILE_READ ); + f_file *file = f_file_open( todo_fname, F_FILE_READ ); if ( file != NULL ) { const int l_s = 128; |