From 47bf18f30d8aaf5147fd0a458fc04cc39a120064 Mon Sep 17 00:00:00 2001 From: Matt Mundell Date: Tue, 12 Mar 2024 17:12:34 +0200 Subject: [PATCH] Fix: Use right command name when modifying report_configs --- src/gmp_report_configs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gmp_report_configs.c b/src/gmp_report_configs.c index b5d400f2e..5a471b05b 100644 --- a/src/gmp_report_configs.c +++ b/src/gmp_report_configs.c @@ -446,7 +446,7 @@ modify_report_config_reset () g_slist_free_1 (modify_report_config_data.context->first); } g_free (modify_report_config_data.context); - memset (&modify_report_config_data, 0, sizeof (create_report_config_t)); + memset (&modify_report_config_data, 0, sizeof (modify_report_config_t)); } /** @@ -518,7 +518,7 @@ modify_report_config_run (gmp_parser_t *gmp_parser, GError **error) SEND_TO_CLIENT_OR_FAIL (XML_ERROR_SYNTAX ("modify_report_config", "The NAME element must not be empty")); - create_report_config_reset (); + modify_report_config_reset (); return; } @@ -541,7 +541,7 @@ modify_report_config_run (gmp_parser_t *gmp_parser, GError **error) break; } case 1: - if (send_find_error_to_client ("create_report_config", + if (send_find_error_to_client ("modify_report_config", "Report Config", report_config_id, gmp_parser)) @@ -554,9 +554,9 @@ modify_report_config_run (gmp_parser_t *gmp_parser, GError **error) break; case 2: SEND_TO_CLIENT_OR_FAIL - (XML_ERROR_SYNTAX ("create_report_config", + (XML_ERROR_SYNTAX ("modify_report_config", "Report config with given name exists already")); - log_event_fail ("report_config", "Report Config", NULL, "created"); + log_event_fail ("report_config", "Report Config", NULL, "modified"); break; case 3: SENDF_TO_CLIENT_OR_FAIL