if ((csp->rlist[i] != NULL) && (csp->rlist[i]->f != NULL))
{
filter_group = csp->rlist[i]->f;
- for (;(!err) && (filter_group != NULL); filter_group = filter_group->next)
+ for (; (!err) && (filter_group != NULL); filter_group = filter_group->next)
{
char current_mode = 'x';
char number[20];
const int multi_action_index = action_type_info[type].multi_action_index;
assert(type < MAX_FILTER_TYPES);
+ assert(multi_action_index < ACTION_MULTI_COUNT);
filter_name = cur_line->data.action->multi_add[multi_action_index]->first;
while ((filter_name != NULL)
*
* Function : action_render_string_actions_template
*
- * Description : Converts a actionsfile entry into HTML template for actions with string
- * filters (currently SUPPRESS-TAG actions only)
+ * Description : Converts an actionsfile entry into HTML template for
+ * actions with string filters (currently SUPPRESS-TAG
+ * actions only)
*
* Parameters :
* 1 : exports = List of substitutions to add to.
* JB_ERR_MEMORY on out-of-memory
*
*********************************************************************/
-static jb_err action_render_string_actions_template(struct map * exports,
+static jb_err action_render_string_actions_template(struct map *exports,
const struct action_spec *action,
- const char* action_template,
+ const char *action_template,
const struct string_action_type_info *string_action_type)
{
jb_err err = JB_ERR_OK;
struct list_entry *list;
};
+ assert(type->multi_action_index < ACTION_MULTI_COUNT);
+
struct action_multi desc[] = {
{ 'y', action->multi_add[type->multi_action_index][0].first },
{ 'n', action->multi_remove[type->multi_action_index][0].first }