--- libaitrpc/src/builtin.c 2011/09/07 00:47:14 1.3.2.10 +++ libaitrpc/src/builtin.c 2011/09/07 00:53:06 1.3.2.11 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: builtin.c,v 1.3.2.10 2011/09/07 00:47:14 misho Exp $ +* $Id: builtin.c,v 1.3.2.11 2011/09/07 00:53:06 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -243,6 +243,11 @@ rpcBLOBServerVars(rpc_func_t *call, int ic, array_t *i pthread_mutex_lock(&srv->srv_blob.mtx); for (i = 0, b = srv->srv_blob.blobs; b; i++, b = b->blob_next); len = i * sizeof str; + + if (!len) { + AIT_SET_STR(io_array(vals, 0, ait_val_t*), ""); + return 0; + } if (!(val = malloc(len))) { LOGERR;