Skip to content

Commit

Permalink
Fixed some formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhelmold committed Oct 18, 2024
1 parent da37b3e commit 7921313
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions util/cpeutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ decode_uri_component (const char *component)

index = 0;
embedded = FALSE;
decoded_component = g_string_sized_new (2*strlen(component));
decoded_component = g_string_sized_new (2 * strlen (component));

char l;
char *unescaped;
Expand Down Expand Up @@ -708,7 +708,7 @@ unpack_sixth_uri_component (const char *component, cpe_struct_t *cpe)
if (start >= end || end == NULL)
edition = strdup ("");
else
edition =g_strndup (start, end - start);
edition = g_strndup (start, end - start);

if (end != NULL)
{
Expand Down Expand Up @@ -874,7 +874,7 @@ add_quoting (const char *component)
if (!component)
return (NULL);

quoted_component = g_string_sized_new (2*strlen(component));
quoted_component = g_string_sized_new (2 * strlen (component));
tmp_component = (char *) g_strdup (component);
embedded = FALSE;

Expand Down
1 change: 0 additions & 1 deletion util/cpeutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ enum set_relation
UNDEFINED
};


#define CPE_COMPONENT_IS_ANY(component) (component[0] == 'A')

#endif

0 comments on commit 7921313

Please sign in to comment.