From b1f8f5c446647253319d66c6d9dd012e38e0c7eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pavel=20Filipensk=C3=BD?= Date: Fri, 8 Jul 2022 16:52:21 +0200 Subject: [PATCH] s4:lib: Fix trailing whitespaces in tools/regshell.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Pavel Filipenský Reviewed-by: Andreas Schneider --- source4/lib/registry/tools/regshell.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source4/lib/registry/tools/regshell.c b/source4/lib/registry/tools/regshell.c index 4d65038d2ae..1dd1cd5b8a1 100644 --- a/source4/lib/registry/tools/regshell.c +++ b/source4/lib/registry/tools/regshell.c @@ -47,7 +47,7 @@ static WERROR get_full_path(struct regshell_context *ctx, const char *path, char new_path = talloc_strdup(ctx, ""); } else { new_path = talloc_strdup(ctx, ctx->path); - } + } dir = strtok(discard_const_p(char, path), "\\"); if (dir == NULL) { @@ -64,7 +64,7 @@ static WERROR get_full_path(struct regshell_context *ctx, const char *path, char talloc_free(tmp); } continue; - } + } if (strcmp(dir, ".") == 0) { continue; } @@ -77,7 +77,7 @@ static WERROR get_full_path(struct regshell_context *ctx, const char *path, char new_path = talloc_asprintf(ctx, "%s\\%s", new_path, dir); } talloc_free(tmp); - + } while ((dir = strtok(NULL, "\\"))); *ret_path = new_path; -- 2.34.1