[gupnp] service-action: Potential fix for issue in Flatpak
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] service-action: Potential fix for issue in Flatpak
- Date: Sun, 8 May 2022 15:08:46 +0000 (UTC)
commit f4d5ed36a649b4dd0ec11a7cf3f04509b957e347
Author: Jens Georg <mail jensge org>
Date: Sun May 8 17:07:37 2022 +0200
service-action: Potential fix for issue in Flatpak
g_clear_pointer seems to run on a NULL ptr
libgupnp/gupnp-service-info.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgupnp/gupnp-service-info.c b/libgupnp/gupnp-service-info.c
index 58b31df..082839e 100644
--- a/libgupnp/gupnp-service-info.c
+++ b/libgupnp/gupnp-service-info.c
@@ -532,6 +532,7 @@ get_scpd_document_finished (GObject *source,
{
GError *error = NULL;
GTask *task = G_TASK (user_data);
+ xmlDoc *scpd = NULL;
GBytes *bytes =
soup_session_send_and_read_finish (SOUP_SESSION (source),
@@ -556,7 +557,6 @@ get_scpd_document_finished (GObject *source,
gsize length;
gconstpointer data = g_bytes_get_data (bytes, &length);
- xmlDoc *scpd = NULL;
scpd = xmlRecoverMemory (data, length);
if (scpd == NULL) {
g_task_return_new_error (task,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]