summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
Diffstat (limited to 'action.c')
-rw-r--r--action.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/action.c b/action.c
index f16146c1..e465b826 100644
--- a/action.c
+++ b/action.c
@@ -348,8 +348,13 @@ actionConstructFinalize(action_t *pThis)
CHKiRet(statsobj.ConstructFinalize(pThis->statsobj));
/* create our queue */
- /* find a name for our queue */
- snprintf((char*) pszAName, sizeof(pszAName)/sizeof(uchar), "action %d queue", iActionNbr);
+ /* find a (friendly) name for our queue */
+ if(pThis->pszName == NULL) {
+ snprintf((char*) pszAName, sizeof(pszAName)/sizeof(uchar), "action %d queue", iActionNbr);
+ } else {
+ snprintf((char*) pszAName, sizeof(pszAName)/sizeof(uchar), "%s queue", pThis->pszName);
+ }
+ pszAName[63] = '\0'; /* to be on the save side */
/* now check if we can run the action in "firehose mode" during stage one of
* its processing (that is before messages are enqueued into the action q).