From 50caf838b6f3e93463834e7dbd5bac97e78098f9 Mon Sep 17 00:00:00 2001 From: Hugh McMaster Date: Tue, 4 Jul 2017 12:46:09 +0000 Subject: [PATCH] regedit: Simplify a while loop for skipping whitespace. Signed-off-by: Hugh McMaster Signed-off-by: Alexandre Julliard --- programs/regedit/regproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/regedit/regproc.c b/programs/regedit/regproc.c index 512ddb46965..527959a8ced 100644 --- a/programs/regedit/regproc.c +++ b/programs/regedit/regproc.c @@ -506,7 +506,7 @@ static enum reg_versions parse_file_header(const WCHAR *s) 'R','e','g','i','s','t','r','y',' ','E','d','i','t','o','r',' ', 'V','e','r','s','i','o','n',' ','5','.','0','0',0}; - while (*s && (*s == ' ' || *s == '\t')) s++; + while (*s == ' ' || *s == '\t') s++; if (!strcmpW(s, header_31)) return REG_VERSION_31;