--- libaitio/inc/aitio.h 2012/09/03 09:26:34 1.25.2.1 +++ libaitio/inc/aitio.h 2012/09/03 12:18:27 1.25.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.25.2.1 2012/09/03 09:26:34 misho Exp $ +* $Id: aitio.h,v 1.25.2.2 2012/09/03 12:18:27 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -245,6 +245,8 @@ typedef struct { void *__p = io_realloc(__val->val.string, AIT_LEN(__val) + __l); \ if (__p) { \ AIT_LEN(__val) += __l; \ + if (!__val->val.string) \ + memset(__p, 0, AIT_LEN(__val)); \ __val->val.string = __p; \ strlcat((char*) __val->val.string, __s, \ AIT_LEN(__val)); \