]> granicus.if.org Git - postgresql/commit
Fix some bugs introduced by the 8.2-era conversion of cube functions to V1
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 29 May 2008 18:46:46 +0000 (18:46 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 29 May 2008 18:46:46 +0000 (18:46 +0000)
commitfe4f2861baae68dbb044cca7ffb86b667a649ad7
tree569d7350e8dbe6221d1d4d8088b1019dfb24ffad
parentf26cbcab751e1c81fc704eeb14e28ea6c84150ed
Fix some bugs introduced by the 8.2-era conversion of cube functions to V1
calling convention.  cube_inter and cube_distance could attempt to pfree
their input arguments, and cube_dim returned a value from a struct it
might have just pfree'd (which would only really cause a problem in a
debug build, but it's still wrong).  Per bug #4208 and additional code
reading.

In HEAD and 8.3, I also made a batch of cosmetic changes to bring these
functions into line with the preferred coding style for V1 functions,
ie declare and fetch all the arguments at the top so readers can easily
see what they are.
contrib/cube/cube.c