X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libustcomm%2Fmultipoll.c;h=1ac51a58bfacbcbde590acffce61ea95d30a06a7;hb=2f03197d3d05b272f82ed261a0a7b2bbb2f66ab0;hp=db9c2ec95b4622f85eb334eded089664965c4f6d;hpb=0e4b45ace8b034dc4352a30d89b74f5e59e2e27d;p=ust.git diff --git a/libustcomm/multipoll.c b/libustcomm/multipoll.c index db9c2ec..1ac51a5 100644 --- a/libustcomm/multipoll.c +++ b/libustcomm/multipoll.c @@ -30,8 +30,8 @@ int multipoll_init(struct mpentries *ent) ent->n_used = 0; ent->n_avail = INITIAL_N_AVAIL; - ent->pollfds = (struct pollfd *) malloc(sizeof(struct pollfd) * 16); - ent->extras = (struct pollfd_extra *) malloc(sizeof(struct pollfd_extra) * 16); + ent->pollfds = (struct pollfd *) malloc(sizeof(struct pollfd) * INITIAL_N_AVAIL); + ent->extras = (struct pollfd_extra *) malloc(sizeof(struct pollfd_extra) * INITIAL_N_AVAIL); return 0; }