Diff between 6c56e60db13cbedb2adf3dc0d19315e6db2fad3a and c948d5b9bda845cd88ad655502cebac7e4fda07c

Changed Files

File Additions Deletions Status
obexd/plugins/filesystem.c +1 -1 modified

Full Patch

diff --git a/obexd/plugins/filesystem.c b/obexd/plugins/filesystem.c
index 27855ad..0fc52fc 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;
 		}