aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 87718ed..6181d7a 100644
--- a/main.c
+++ b/main.c
@@ -178,7 +178,7 @@ bool delete_task(database_t *db, task_t *task) {
void clear_database(database_t *db) {
free(db->tasks);
- memset(db, 0, SIZEOF_TASK_T);
+ memset(db, 0, SIZEOF_DATABASE_T);
}
// Stores data from database into binary file.