[Python-checkins] python/dist/src/Python bltinmodule.c,2.296,2.297

jhylton at users.sourceforge.net jhylton at users.sourceforge.net
Mon Sep 15 23:17:18 EDT 2003


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv7496
Modified Files:
	bltinmodule.c 
Log Message:
Correct check of PyUnicode_Resize() return value.
Index: bltinmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v
retrieving revision 2.296
retrieving revision 2.297
diff -C2 -d -r2.296 -r2.297
*** bltinmodule.c	16 Sep 2003 03:10:59 -0000	2.296
--- bltinmodule.c	16 Sep 2003 03:17:16 -0000	2.297
***************
*** 2382,2386 ****
 					if (need < 2 * outlen)
 						need = 2 * outlen;
! 					if (PyUnicode_Resize(&result, need)) {
 						Py_DECREF(item);
 						goto Fail_1;
--- 2382,2387 ----
 					if (need < 2 * outlen)
 						need = 2 * outlen;
! 					if (PyUnicode_Resize(
! 						&result, need) < 0) {
 						Py_DECREF(item);
 						goto Fail_1;


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /