summaryrefslogtreecommitdiffstats
path: root/objomsr.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-31 09:04:54 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-31 09:04:54 +0000
commitf4efff123c6510e37b677c526f38bf8502307213 (patch)
treebbe34201ceaf248759c3c7f8933ee615362bf795 /objomsr.c
parent82747c8d01a775e4a0921f2c839ea410cd48d168 (diff)
downloadrsyslog-f4efff123c6510e37b677c526f38bf8502307213.tar.gz
rsyslog-f4efff123c6510e37b677c526f38bf8502307213.tar.xz
rsyslog-f4efff123c6510e37b677c526f38bf8502307213.zip
- fixed bug in objomsr.c that caused program to abort in debug mode with an
invalid assertion (in some cases)
Diffstat (limited to 'objomsr.c')
-rw-r--r--objomsr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/objomsr.c b/objomsr.c
index e102597d..979f9d3a 100644
--- a/objomsr.c
+++ b/objomsr.c
@@ -64,7 +64,7 @@ rsRetVal OMSRconstruct(omodStringRequest_t **ppThis, int iNumEntries)
DEFiRet;
assert(ppThis != NULL);
- assert(iNumEntries > 0);
+ assert(iNumEntries >= 0);
if((pThis = calloc(1, sizeof(omodStringRequest_t))) == NULL) {
iRet = RS_RET_OUT_OF_MEMORY;
goto abort_it;