--- libaitio/inc/aitio.h 2011/09/01 15:11:16 1.11.2.11 +++ libaitio/inc/aitio.h 2011/09/05 01:07:20 1.11.2.12 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.11.2.11 2011/09/01 15:11:16 misho Exp $ +* $Id: aitio.h,v 1.11.2.12 2011/09/05 01:07:20 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -160,7 +160,7 @@ typedef struct { __val->val_type = buffer; AIT_LEN(__val) = _len; \ memcpy(__val->val.buffer, (_v), _len); \ } } while (0) -#define AIT_SET_STR(_vl, _v) do { ait_val_t *__val = (_vl); assert(__val); \ +#define AIT_SET_STR(_vl, _v) do { ait_val_t *__val = (_vl); assert(__val); assert((_v)); \ __val->val.string = (int8_t*) strdup((_v)); \ if (__val->val.string) { \ __val->val_type = string; \