From 488fe9d6c1aa51eca1c7d1d400ff427a733dbe1b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Sun, 8 Nov 2015 20:59:11 +0100 Subject: [PATCH] Set initial data count to zero --- libhpcs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libhpcs.c b/libhpcs.c index 8b3f38c..7360f99 100644 --- 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; } -- 2.43.5