simple test function
[matches/MCTX3420.git] / server / data.c
index ffd0b67..dae3172 100644 (file)
@@ -1,6 +1,6 @@
 /**
  * @file data.c
- * @purpose Implementation of data handling functions; saving, loading, displaying, selecting.
+ * @brief Implementation of data handling functions; saving, loading, displaying, selecting.
  */
 
 #include "data.h"
@@ -13,9 +13,8 @@
 void Data_Init(DataFile * df)
 {
        // Everything is NULL
-       df->filename = NULL;
+       memset(df, 0, sizeof(DataFile));
        pthread_mutex_init(&(df->mutex), NULL);
-       df->file = NULL;
 }
 
 /**

UCC git Repository :: git.ucc.asn.au