aboutsummaryrefslogtreecommitdiff
path: root/task_tracker.c
diff options
context:
space:
mode:
Diffstat (limited to 'task_tracker.c')
-rw-r--r--task_tracker.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/task_tracker.c b/task_tracker.c
index 9bb8f4b..c0f40ab 100644
--- a/task_tracker.c
+++ b/task_tracker.c
@@ -8,8 +8,6 @@
#include <time.h>
-int selected_task = -1;
-
struct task_event {
char* name;
time_t start;
@@ -22,6 +20,7 @@ struct task_info {
};
+int selected_task = -1;
char** tasks_names = NULL;
uint32_t tasks_names_size = 0;
uint32_t tasks_names_capacity = 0;
@@ -109,7 +108,7 @@ void fake_data()
// Free tasks names.
for (uint32_t idx = tasks_names_size; idx > 0; idx--)
{
- printf("> %s\n", tasks_names[idx-1]);
+ printf("> %s\n", tasks_names[idx-1]); // @dam TODO debug
free(tasks_names[idx-1]);
}
free(tasks_names);