[gupnp/gupnp-0.18: 16/20] Ensure that the callback is NULL
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp/gupnp-0.18: 16/20] Ensure that the callback is NULL
- Date: Sat, 17 Mar 2012 11:53:08 +0000 (UTC)
commit 1f60fbac3e212de5bf7855164d73610d4ad277cc
Author: Jens Georg <mail jensge org>
Date: Mon Feb 13 13:03:48 2012 +0200
Ensure that the callback is NULL
libgupnp/gupnp-service.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libgupnp/gupnp-service.c b/libgupnp/gupnp-service.c
index 60e5687..843d464 100644
--- a/libgupnp/gupnp-service.c
+++ b/libgupnp/gupnp-service.c
@@ -2092,9 +2092,10 @@ find_callback_by_name (GModule *module,
"cb",
NULL);
- g_module_symbol (module,
- full_name,
- (gpointer) &callback);
+ if (!g_module_symbol (module,
+ full_name,
+ (gpointer) &callback))
+ callback = NULL;
}
g_free (full_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]