--- libaitio/inc/aitio.h 2012/04/05 11:11:48 1.16.2.7 +++ libaitio/inc/aitio.h 2012/04/05 12:21:14 1.16.2.9 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.16.2.7 2012/04/05 11:11:48 misho Exp $ +* $Id: aitio.h,v 1.16.2.9 2012/04/05 12:21:14 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -213,6 +213,7 @@ typedef struct { __val->val_type = f64; __val->val.f64 = _n; \ AIT_LEN(__val) = sizeof(double); } while (0) +#define AIT_INIT_VAL(_vl) (memset((_vl), 0, sizeof(ait_val_t))) /* if attribute zeroCopy is set not execute free() */ #define AIT_FREE_VAL(_vl) do { ait_val_t *__val = (_vl); assert(__val); \ switch (AIT_TYPE(__val)) { \