bugfix omhttp: does not compile on all platforms

at least on CentOS 6 package build we see errors:

https://build.opensuse.org/package/live_build_log/home:jgerhards:branches:home:rgerhards/rsyslog/CentOS_6/i586

see also https://github.com/rsyslog/rsyslog/issues/3302
This commit is contained in:
Rainer Gerhards 2018-11-17 17:51:43 +01:00
parent 06a295b4a3
commit 8ac802ec65
No known key found for this signature in database
GPG Key ID: 0CB6B2A8BE80B499

View File

@ -113,7 +113,6 @@ typedef struct instanceConf_s {
struct instanceConf_s *next;
} instanceData;
typedef instanceConf_t instanceData;
struct modConfData_s {
rsconf_t *pConf; /* our overall config object */
@ -590,10 +589,10 @@ static rsRetVal
getSection(const char* bulkRequest, const char **bulkRequestNextSectionStart )
{
DEFiRet;
char* index =0;
if( (index = strchr(bulkRequest,'\n')) != 0)/*intermediate section*/
char* idx =0;
if( (idx = strchr(bulkRequest,'\n')) != 0)/*intermediate section*/
{
*bulkRequestNextSectionStart = ++index;
*bulkRequestNextSectionStart = ++idx;
}
else
{