--- libaitio/inc/aitio.h 2011/08/29 23:10:51 1.11.2.3 +++ libaitio/inc/aitio.h 2011/08/29 23:27:22 1.11.2.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.11.2.3 2011/08/29 23:10:51 misho Exp $ +* $Id: aitio.h,v 1.11.2.4 2011/08/29 23:27:22 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -157,7 +157,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); assert((_v)); \ +#define AIT_SET_STR(_vl, _v) do { ait_val_t *__val = (_vl); assert(__val); \ __val->val.string = (int8_t*) strdup((_v)); \ if (__val->val.string) { \ __val->val_type = string; \