[Bf-blender-cvs] [6cbd2e5c4d4] master: Cleanup: remove redundant check
Campbell Barton
noreply at git.blender.org
Sun Mar 17 11:15:11 CET 2019
Commit: 6cbd2e5c4d4592cb12d657c5c433a37db98c90a1
Author: Campbell Barton
Date: Sun Mar 17 19:19:12 2019 +1100
Branches: master
https://developer.blender.org/rB6cbd2e5c4d4592cb12d657c5c433a37db98c90a1
Cleanup: remove redundant check
===================================================================
M source/blender/blenlib/intern/string.c
===================================================================
diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c
index dbec1a3153c..a1228045a4d 100644
--- a/source/blender/blenlib/intern/string.c
+++ b/source/blender/blenlib/intern/string.c
@@ -603,10 +603,12 @@ static int left_number_strcmp(const char *s1, const char *s2, int *tiebreaker)
int numdigit, numzero1, numzero2;
/* count and skip leading zeros */
- for (numzero1 = 0; *p1 && (*p1 == '0'); numzero1++)
+ for (numzero1 = 0; *p1 == '0'; numzero1++) {
p1++;
- for (numzero2 = 0; *p2 && (*p2 == '0'); numzero2++)
+ }
+ for (numzero2 = 0; *p2 == '0'; numzero2++) {
p2++;
+ }
/* find number of consecutive digits */
for (numdigit = 0; ; numdigit++) {
More information about the Bf-blender-cvs
mailing list