Hugh McMaster : regedit: Simplify a while loop for skipping whitespace.
Alexandre Julliard
julliard at winehq.org
Tue Jul 4 15:25:57 CDT 2017
Module: wine
Branch: master
Commit: 50caf838b6f3e93463834e7dbd5bac97e78098f9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=50caf838b6f3e93463834e7dbd5bac97e78098f9
Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date: Tue Jul 4 12:46:09 2017 +0000
regedit: Simplify a while loop for skipping whitespace.
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 512ddb4..527959a 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;
More information about the wine-cvs
mailing list