diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-31 09:04:54 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-31 09:04:54 +0000 |
commit | f4efff123c6510e37b677c526f38bf8502307213 (patch) | |
tree | bbe34201ceaf248759c3c7f8933ee615362bf795 /objomsr.c | |
parent | 82747c8d01a775e4a0921f2c839ea410cd48d168 (diff) | |
download | rsyslog-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |