From 331ea6fd144d230acaec2272484520255bccd8e5 Mon Sep 17 00:00:00 2001 From: Raymond Liu Date: Mon, 1 Dec 2008 12:59:36 +0800 Subject: [PATCH] obexd: Do not send NULL to g_str_equal for compare --- obexd/client/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/client/session.c b/obexd/client/session.c index b8ec98735..c76dabba2 100644 --- a/obexd/client/session.c +++ b/obexd/client/session.c @@ -1208,7 +1208,7 @@ int session_get(struct session_data *session, const char *type, return -EIO; } - if (!g_str_equal(type, "x-obex/folder-listing")) { + if (type && !g_str_equal(type, "x-obex/folder-listing")) { session->transfer_path = register_transfer(session->conn, session); if (session->transfer_path == NULL) { if (fd) -- 2.47.3