]> Devoid-pointer.net GitWeb - libHPCS.git/commitdiff
Set initial data count to zero
authorMichal Malý <madcatxster@devoid-pointer.net>
Sun, 8 Nov 2015 19:59:11 +0000 (20:59 +0100)
committerMichal Malý <madcatxster@devoid-pointer.net>
Sun, 8 Nov 2015 19:59:11 +0000 (20:59 +0100)
libhpcs.c

index 8b3f38c432ca62f8d03c46de32481b9e140c06dc..7360f9991ddc2fb21a63b0af0547e7b7cbe8220b 100644 (file)
--- a/libhpcs.c
+++ b/libhpcs.c
@@ -38,6 +38,8 @@ struct HPCS_MeasuredData* hpcs_alloc_mdata()
        mdata->y_units = NULL;
        mdata->data = NULL;
 
+       mdata->data_count = 0;
+
        return mdata;
 }