Diff between 18f3c34d6671b7515fa0f262a96012e68f1298f2 and 1f3e8d2f12f96b2bfeefd4c30acc0a9bdb011830

Changed Files

File Additions Deletions Status
obexd/plugins/ftp.c +15 -15 modified

Full Patch

diff --git a/obexd/plugins/ftp.c b/obexd/plugins/ftp.c
index 30edc6b..0586326 100644
--- a/obexd/plugins/ftp.c
+++ b/obexd/plugins/ftp.c
@@ -358,26 +358,26 @@ done:
 
 static gboolean is_valid_path(const char *path)
 {
-        gchar **elements, **cur;
-        int depth = 0;
+	gchar **elements, **cur;
+	int depth = 0;
 
-        elements = g_strsplit(path, "/", 0);
+	elements = g_strsplit(path, "/", 0);
 
-        for (cur = elements; *cur != NULL; cur++) {
-                if (**cur == '\0' || strcmp(*cur, ".") == 0)
-                        continue;
+	for (cur = elements; *cur != NULL; cur++) {
+		if (**cur == '\0' || strcmp(*cur, ".") == 0)
+			continue;
 
-                if (strcmp(*cur, "..") == 0) {
-                        depth--;
-                        if (depth < 0)
-                                break;
-                        continue;
-                }
+		if (strcmp(*cur, "..") == 0) {
+			depth--;
+			if (depth < 0)
+				break;
+			continue;
+		}
 
-                depth++;
-        }
+		depth++;
+	}
 
-        g_strfreev(elements);
+	g_strfreev(elements);
 
 	if (depth < 0)
 		return FALSE;