summaryrefslogtreecommitdiff
path: root/todo.c
diff options
context:
space:
mode:
Diffstat (limited to 'todo.c')
-rw-r--r--todo.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/todo.c b/todo.c
index 52b4e8c..745db49 100644
--- a/todo.c
+++ b/todo.c
@@ -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;