aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index c0af504f..c548fafd 100644
--- a/driver.c
+++ b/driver.c
@@ -1642,7 +1642,11 @@ const struct method *proto; /* protocol method table */
*/
if (proto->getsizes)
{
+ int i;
+
msgsizes = (int *)alloca(sizeof(int) * count);
+ for (i = 0; i < count; i++)
+ msgsizes[i] = -1;
ok = (proto->getsizes)(sock, count, msgsizes);
if (ok != 0)