minor fixes

This commit is contained in:
Marc Stern
2024-04-10 14:04:34 +02:00
parent 5f938536a0
commit a01b9b527e
3 changed files with 11 additions and 6 deletions

View File

@@ -32,8 +32,9 @@
// Returns the rule id if existing, otherwise the file name & line number
static const char* id_log(msre_rule* rule) {
const char* id = rule->actionset->id;
if (!id || !*id || id == NOT_SET_P) id = apr_psprintf(rule->ruleset->mp, "%s (%d)", rule->filename, rule->line_num);
char* id = rule->actionset->id;
if (id == NOT_SET_P || !id || !*id)
id = apr_psprintf(rule->ruleset->mp, "%s (%d)", rule->filename, rule->line_num);
return id;
}