|
From: Seth D. <set...@us...> - 2005-03-30 13:56:19
|
Update of /cvsroot/frontierkernel/Frontier/Common/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30506 Modified Files: oplist.c Log Message: opvisitlit threw an error when trying to traverse an empty list. Now it simply returns true, as this is not an error condition. This fixes a bug with passing an empty list to re.join, such as re.join("a",{}), which would throw an error about only being able to unpack binary values. Index: oplist.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/oplist.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** oplist.c 11 Jan 2005 22:48:09 -0000 1.6 --- oplist.c 30 Mar 2005 13:56:02 -0000 1.7 *************** *** 854,857 **** --- 854,863 ---- bigstring bskey; + /* + 2005-03-30 smd: if the list is empty, we're done. + */ + if (opcountlistitems (hlist) == 0) + return (true); + ho = (hdloutlinerecord) (**hlist).houtline; |