diff options
Diffstat (limited to 'src/analysis/scan/context.c')
-rw-r--r-- | src/analysis/scan/context.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/analysis/scan/context.c b/src/analysis/scan/context.c index a3be86b..51fdd6b 100644 --- a/src/analysis/scan/context.c +++ b/src/analysis/scan/context.c @@ -665,7 +665,7 @@ const GScanMatch **g_scan_context_get_full_matches(const GScanContext *context, * * ******************************************************************************/ -bool g_scan_context_set_rule_condition(GScanContext *context, const char *name, const GScanExpression *expr) +bool g_scan_context_set_rule_condition(GScanContext *context, const char *name, GScanExpression *expr) { bool result; /* Bilan à retourner */ size_t i; /* Boucle de parcours */ @@ -693,8 +693,8 @@ bool g_scan_context_set_rule_condition(GScanContext *context, const char *name, new->name = strdup(name); new->name_hash = fnv_64a_hash(name); - new->expr = expr;//g_scan_expression_duplicate(expr); - g_object_ref(G_OBJECT(expr)); // FIXME => REMME dup() + new->expr = expr; + g_object_ref(G_OBJECT(expr)); new->final_reduced = false; } |