summaryrefslogtreecommitdiffstats
path: root/runtime/wti.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-05-12 15:58:11 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-05-12 15:58:11 +0200
commitfbb040b411ee564e4a4bbaf53ec342236929324f (patch)
treed9fc6b8ff08adb479fdd3706d3ff5d6d9f5a6e16 /runtime/wti.c
parentbb79e96dc300fa5a2182e7c047afb3b15c5dc870 (diff)
downloadrsyslog-fbb040b411ee564e4a4bbaf53ec342236929324f.tar.gz
rsyslog-fbb040b411ee564e4a4bbaf53ec342236929324f.tar.xz
rsyslog-fbb040b411ee564e4a4bbaf53ec342236929324f.zip
one astrisk too much - and we have a segfault... - fixed ;)
Diffstat (limited to 'runtime/wti.c')
-rw-r--r--runtime/wti.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/wti.c b/runtime/wti.c
index c3fa127e..7029dcfd 100644
--- a/runtime/wti.c
+++ b/runtime/wti.c
@@ -233,7 +233,7 @@ wtiConstructFinalize(wti_t *pThis)
/* we now alloc the array for user pointers. We obtain the max from the queue itself. */
CHKiRet(pThis->pWtp->pfGetDeqBatchSize(pThis->pWtp->pUsr, &iDeqBatchSize));
- CHKmalloc(pThis->batch.pElem = calloc((size_t)iDeqBatchSize, sizeof(batch_obj_t*)));
+ CHKmalloc(pThis->batch.pElem = calloc((size_t)iDeqBatchSize, sizeof(batch_obj_t)));
finalize_it:
RETiRet;