From: Michal MalĂ˝ Date: Sun, 8 Nov 2015 19:59:11 +0000 (+0100) Subject: Set initial data count to zero X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=488fe9d6c1aa51eca1c7d1d400ff427a733dbe1b;p=libHPCS.git Set initial data count to zero --- 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; }