Diff between 677a3456afa886e759582a96e1b9d47992b17c52 and 07943b87fac629db2c58281ea1d6e0faad6a2965
Changed Files
| File | Additions | Deletions | Status |
| gobex/gobex-apparam.c | +3 | -0 | modified |
Full Patch
diff --git a/gobex/gobex-apparam.c b/gobex/gobex-apparam.c
index 4328172..b16cee1 100644
--- a/gobex/gobex-apparam.c
+++ b/gobex/gobex-apparam.c
@@ -152,6 +152,9 @@ gssize g_obex_apparam_encode(GObexApparam *apparam, void *buf, gsize len)
GHashTableIter iter;
gpointer key, value;
+ if (!apparam)
+ return 0;
+
g_hash_table_iter_init(&iter, apparam->tags);
while (g_hash_table_iter_next(&iter, &key, &value)) {
struct apparam_tag *tag = value;