Skip to content

Commit

Permalink
Merge pull request #562 from flatpak/pgriffis/invalid-error
Browse files Browse the repository at this point in the history
Fix propagating invalid error
  • Loading branch information
smcv authored Sep 18, 2023
2 parents 98291c9 + da74363 commit 4fa7ddf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/builder-source-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,25 +341,19 @@ download_data_uri (const char *url,
GError **error)
{
CURL *session;
g_autoptr(GError) first_error = NULL;
g_autoptr(GInputStream) input = NULL;
g_autoptr(GOutputStream) out = NULL;
g_autoptr(GUri) parsed = NULL;

parsed = g_uri_parse(url, CONTEXT_HTTP_URI_FLAGS, error);
if (!parsed)
{
return FALSE;
}
return NULL;

session = builder_context_get_curl_session (context);
out = g_memory_output_stream_new_resizable ();

if (!builder_download_uri_buffer (parsed, NULL, session, out, NULL, 0, error))
{
g_propagate_error (error, g_steal_pointer (&first_error));
return NULL;
}

if (!g_output_stream_splice (out,
input,
Expand Down
2 changes: 1 addition & 1 deletion subprojects/debugedit
Submodule debugedit updated from 60ee63 to ae2721

0 comments on commit 4fa7ddf

Please sign in to comment.