summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/glib-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/glib-helper.c b/common/glib-helper.c
index 91b167b0..0d7c6d60 100644
--- a/common/glib-helper.c
+++ b/common/glib-helper.c
@@ -250,7 +250,7 @@ int bt_search_service(const bdaddr_t *src, const bdaddr_t *dst,
uuid_t *uuid, bt_callback_t cb, void *user_data,
bt_destroy_t destroy)
{
- struct search_context *ctxt;
+ struct search_context *ctxt = NULL;
int err;
if (!cb)