From c948d5b9bda845cd88ad655502cebac7e4fda07c Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 21 Sep 2011 15:03:05 +0900 Subject: [PATCH] obexd: Fix g_filename_to_utf8 failure check --- obexd/plugins/filesystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/plugins/filesystem.c b/obexd/plugins/filesystem.c index 27855ad14..0fc52fcf4 100644 --- a/obexd/plugins/filesystem.c +++ b/obexd/plugins/filesystem.c @@ -517,7 +517,7 @@ static GString *append_listing(GString *object, const char *name, continue; filename = g_filename_to_utf8(ep->d_name, -1, NULL, NULL, NULL); - if (name == NULL) { + if (filename == NULL) { error("g_filename_to_utf8: invalid filename"); continue; } -- 2.47.3