summaryrefslogtreecommitdiff
path: root/libgupnp
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2022-11-07 15:41:08 +0100
committerJens Georg <mail@jensge.org>2022-11-07 15:41:08 +0100
commitc87d858815a1e45dcb51c796be89b19f2a52ac3f (patch)
treec88c8e7aea19f1999aed76d8f872d27f40b98420 /libgupnp
parentc961f9d7208c2b857a09c3aa13bd53711b2b08d5 (diff)
downloadgupnp-c87d858815a1e45dcb51c796be89b19f2a52ac3f.tar.gz
service: Initialize GError properly
Trying to propagate an error over some unintialized error causes a warning and, more importantly, an invalid free Fixes #80
Diffstat (limited to 'libgupnp')
-rw-r--r--libgupnp/gupnp-service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgupnp/gupnp-service.c b/libgupnp/gupnp-service.c
index 4620909..4c491ee 100644
--- a/libgupnp/gupnp-service.c
+++ b/libgupnp/gupnp-service.c
@@ -1428,7 +1428,7 @@ notify_got_response (GObject *source, GAsyncResult *res, gpointer user_data)
g_bytes_ref (data->property_set));
} else {
/* Emit 'notify-failed' signal */
- GError *inner_error;
+ GError *inner_error = NULL;
// We have an error, so just propagate that
if (error != NULL) {