summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/stropmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c
index c245794..aa9cdc7 100644
--- a/Modules/stropmodule.c
+++ b/Modules/stropmodule.c
@@ -1121,7 +1121,7 @@ strop_replace(PyObject *self, PyObject *args)
{
char *str, *pat,*sub,*new_s;
int len,pat_len,sub_len,out_len;
- int count = 0;
+ int count = -1;
PyObject *new;
if (!PyArg_ParseTuple(args, "t#t#t#|i:replace",