Minor cleanup of PQunescapeBytea(). Avoid unportable assumptions about

Tom Lane <tgl@sss.pgh.pa.us>

Commit: bcf4d35699fdbd43c5226be5ff2a62b5461813ff
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-10-31T17:43:10Z
Releases: 7.4.1
Minor cleanup of PQunescapeBytea().  Avoid unportable assumptions about
behavior of malloc and realloc when request size is 0.  Fix escape
sequence recognizer so that only valid 3-digit octal sequences are
treated as escape sequences ... isdigit() is not a correct test.

Files

PathChange+/−
src/interfaces/libpq/fe-exec.c modified +34 −21