--- libaitio/src/Attic/array.c 2012/07/30 10:55:51 1.10.6.2 +++ libaitio/src/Attic/array.c 2012/07/30 11:11:39 1.10.6.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: array.c,v 1.10.6.2 2012/07/30 10:55:51 misho Exp $ +* $Id: array.c,v 1.10.6.3 2012/07/30 11:11:39 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -591,11 +591,13 @@ io_MakeAV2(char * __restrict psArgs, const char *csDel return -1; pos = strpbrk(psArgs, csDelim); - if (pos) + if (pos) { *pos++ = 0; - ret++; - if (psAttr) - psAttr = psArgs; + ret++; + if (psAttr) + psAttr = psArgs; + } else + return 0; if (psValue) { if (pos && *pos) {