Minor cleanup of PQunescapeBytea(). Avoid unportable assumptions about
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 31 Oct 2003 17:43:10 +0000 (17:43 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 31 Oct 2003 17:43:10 +0000 (17:43 +0000)
commitbcf4d35699fdbd43c5226be5ff2a62b5461813ff
tree6efca529e171a93f9ff34d4ff692c6dbdd1a6199
parent774f57038abb19dee70a895bbcd0bc3c3f667211
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.
src/interfaces/libpq/fe-exec.c