From 3a252c6415a6dd2b7bc26270bda8cced52e8ce52 Mon Sep 17 00:00:00 2001 From: Matt Mundell Date: Tue, 20 Aug 2024 19:55:19 +0200 Subject: [PATCH] Remove resource_id field from get_permissions_data_t --- src/gmp.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/gmp.c b/src/gmp.c index 231e40eaa..03219f1d5 100644 --- a/src/gmp.c +++ b/src/gmp.c @@ -1905,7 +1905,6 @@ get_overrides_data_reset (get_overrides_data_t *data) typedef struct { get_data_t get; ///< Get args. - char *resource_id; ///< Resource whose permissions to get. } get_permissions_data_t; /** @@ -1916,8 +1915,6 @@ typedef struct static void get_permissions_data_reset (get_permissions_data_t *data) { - free (data->resource_id); - get_data_reset (&data->get); memset (data, 0, sizeof (get_permissions_data_t)); } @@ -5475,8 +5472,6 @@ gmp_xml_handle_start_element (/* unused */ GMarkupParseContext* context, get_data_parse_attributes (&get_permissions_data->get, "permission", attribute_names, attribute_values); - append_attribute (attribute_names, attribute_values, "resource_id", - &get_permissions_data->resource_id); set_client_state (CLIENT_GET_PERMISSIONS); } else if (strcasecmp ("GET_PREFERENCES", element_name) == 0)