summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-07-07 14:19:09 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2004-07-07 14:19:09 (GMT)
commitea271f2d5e38129b45f798a9e883cdc1e47f8b31 (patch)
tree64e45e84603deeb80ce9f29bc43f23f95fb23c59
parent1263bd8b6c507e15df7df506c94b54d9629a8ec8 (diff)
downloadcpython-ea271f2d5e38129b45f798a9e883cdc1e47f8b31.zip
cpython-ea271f2d5e38129b45f798a9e883cdc1e47f8b31.tar.gz
cpython-ea271f2d5e38129b45f798a9e883cdc1e47f8b31.tar.bz2
[Bug #982806] The default argument for opening GDBM files is bogus. Patch #984672 by James Lamanna
-rw-r--r--Modules/gdbmmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/gdbmmodule.c b/Modules/gdbmmodule.c
index accf438..03e664d 100644
--- a/Modules/gdbmmodule.c
+++ b/Modules/gdbmmodule.c
@@ -434,7 +434,7 @@ static PyObject *
dbmopen(PyObject *self, PyObject *args)
{
char *name;
- char *flags = "r ";
+ char *flags = "r";
int iflags;
int mode = 0666;