Skip to content

Commit

Permalink
Properly initialize AsNodeToXmlHelper
Browse files Browse the repository at this point in the history
Fixes: #445
  • Loading branch information
heftig authored and hughsie committed Jul 18, 2022
1 parent fe02234 commit 3870226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libappstream-glib/as-node.c
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ as_node_from_xml_internal (const gchar *data, gssize data_sz,
AsNodeFromXmlFlags flags,
GError **error)
{
AsNodeToXmlHelper helper;
AsNodeToXmlHelper helper = {0};
AsNode *root = NULL;
gboolean ret;
g_autoptr(GError) error_local = NULL;
Expand Down Expand Up @@ -963,7 +963,7 @@ as_node_from_file (GFile *file,
GCancellable *cancellable,
GError **error)
{
AsNodeToXmlHelper helper;
AsNodeToXmlHelper helper = {0};
GError *error_local = NULL;
AsNode *root = NULL;
const gchar *content_type = NULL;
Expand Down

0 comments on commit 3870226

Please sign in to comment.