[Python-checkins] python/dist/src/Objects unicodeobject.c,2.172,2.173

lemburg@users.sourceforge.net lemburg@users.sourceforge.net
Wed, 23 Oct 2002 02:02:49 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv2038/Objects

Modified Files:
	unicodeobject.c 
Log Message:
Fix for bug #626172:  crash using unicode latin1 single char

Python 2.2.3 candidate.



Index: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.172
retrieving revision 2.173
diff -C2 -d -r2.172 -r2.173
*** unicodeobject.c	11 Oct 2002 00:43:48 -0000	2.172
--- unicodeobject.c	23 Oct 2002 09:02:46 -0000	2.173
***************
*** 4486,4493 ****
      }
      u = (PyUnicodeObject *)PyUnicode_FromObject(container);
!     if (u == NULL) {
! 	Py_DECREF(v);
  	goto onError;
-     }
  
      size = PyUnicode_GET_SIZE(v);
--- 4486,4491 ----
      }
      u = (PyUnicodeObject *)PyUnicode_FromObject(container);
!     if (u == NULL)
  	goto onError;
  
      size = PyUnicode_GET_SIZE(v);