Message71874
The "goto error" is not necessary here. Nothing has been allocated at
this point, and "return -1" is enough.
Index: Modules/_fileio.c
===================================================================
--- Modules/_fileio.c (revision 65957)
+++ Modules/_fileio.c (working copy)
@@ -175,7 +175,7 @@
kwlist,
Py_FileSystemDefaultEncoding,
&name, &mode, &closefd))
- goto error;
+ return -1;
}
} |
|
Date |
User |
Action |
Args |
2008-08-24 21:16:28 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, christian.heimes, ajaksu2 |
2008-08-24 21:16:28 | amaury.forgeotdarc | set | messageid: <1219612588.43.0.422016094533.issue3662@psf.upfronthosting.co.za> |
2008-08-24 21:16:27 | amaury.forgeotdarc | link | issue3662 messages |
2008-08-24 21:16:27 | amaury.forgeotdarc | create | |
|