diff options
-rw-r--r-- | Modules/stropmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c index 52d4cee366..069d5f4447 100644 --- a/Modules/stropmodule.c +++ b/Modules/stropmodule.c @@ -384,7 +384,7 @@ strop_capitalize(self, args) return NULL; s_new = getstringvalue(new); changed = 0; - { + if (0 < n) { int c = Py_CHARMASK(*s++); if (islower(c)) { changed = 1; |