Skip to content

Commit

Permalink
Merge pull request #2233 from greenbone/get-aggregates-subtype
Browse files Browse the repository at this point in the history
Remove stray attribute subtype from GET_AGGREGATES
  • Loading branch information
a-h-abdelsalam authored Jun 21, 2024
2 parents a024e78 + 4904230 commit f2f3ace
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/gmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,6 @@ typedef struct
{
get_data_t get; ///< Get args.
char *type; ///< Resource type.
char *subtype; ///< Resource subtype.
GList *data_columns; ///< Columns to calculate aggregate for.
GList *text_columns; ///< Columns to get simple text from.
char *group_column; ///< Column to group data by.
Expand Down Expand Up @@ -5133,13 +5132,6 @@ gmp_xml_handle_start_element (/* unused */ GMarkupParseContext* context,
append_attribute (attribute_names, attribute_values, "type",
&get_aggregates_data->type);

if (get_aggregates_data->type
&& strcasecmp (get_aggregates_data->type, "info") == 0)
{
append_attribute (attribute_names, attribute_values, "info_type",
&get_aggregates_data->subtype);
}

append_attribute (attribute_names, attribute_values, "data_column",
&data_column);
get_aggregates_data->data_columns
Expand Down

0 comments on commit f2f3ace

Please sign in to comment.