From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> Make use of tabs instead of spaces --- plugins/ftp.c | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/plugins/ftp.c b/plugins/ftp.c index 30edc6b..0586326 100644 --- a/plugins/ftp.c +++ b/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; -- 1.7.6.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html