[XML-SIG] Another bug in sgmlop?

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Mon, 7 Aug 2000 21:41:42 +0200


walter wrote:

> page [('test', 'test'), ('test', 'test'), ('nohome', 'nohome')]
> Segmentation fault.
>=20
> (I installed the Fredrik's patch from the 5th July.

the patch was flawed; you need to add an extra
INCREF to avoid running out of references...

--- 1284,1291 ----
          else
              value =3D key; /* in SGML mode, default is same as key */

+         Py_INCREF(value);
+
          while (p < end && ISSPACE(*p))
              p++;

</F>