summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-11-06 13:06:48 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-11-06 13:06:48 +0100
commit6b0e236cdf3d55299de70cf41dafdefec286f103 (patch)
treea04a786923e78fa579c04ed8ae560fc713f255b7 /action.c
parent4e04480206a6abae249f890e07fdecf380348c74 (diff)
downloadrsyslog-6b0e236cdf3d55299de70cf41dafdefec286f103.tar.gz
rsyslog-6b0e236cdf3d55299de70cf41dafdefec286f103.tar.bz2
rsyslog-6b0e236cdf3d55299de70cf41dafdefec286f103.zip
cleanup unreachable code
Diffstat (limited to 'action.c')
-rw-r--r--action.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/action.c b/action.c
index eb6301d8..c46effc6 100644
--- a/action.c
+++ b/action.c
@@ -1945,20 +1945,14 @@ actionNewInst(struct nvlst *lst, action_t **ppAction)
omodStringRequest_t *pOMSR;
void *pModData;
action_t *pAction;
- int typeIdx;
DEFiRet;
paramvals = nvlstGetParams(lst, &pblk, NULL);
if(paramvals == NULL) {
- ABORT_FINALIZE(RS_RET_ERR);
+ ABORT_FINALIZE(RS_RET_PARAM_ERROR);
}
dbgprintf("action param blk after actionNewInst:\n");
cnfparamsPrint(&pblk, paramvals);
- typeIdx = cnfparamGetIdx(&pblk, "type");
- if(paramvals[typeIdx].bUsed == 0) {
- errmsg.LogError(0, RS_RET_CONF_RQRD_PARAM_MISSING, "action type missing");
- ABORT_FINALIZE(RS_RET_CONF_RQRD_PARAM_MISSING); // TODO: move this into rainerscript handlers
- }
cnfModName = (uchar*)es_str2cstr(paramvals[cnfparamGetIdx(&pblk, ("type"))].val.d.estr, NULL);
if((pMod = module.FindWithCnfName(loadConf, cnfModName, eMOD_OUT)) == NULL) {
errmsg.LogError(0, RS_RET_MOD_UNKNOWN, "module name '%s' is unknown", cnfModName);