index 3b0c8279a53ad787f503e926120a0fcaa0565aaf..b97805ca8caba6b678a1ef90097397866cb82e81 100644 (file)
* easier for users to find the invalidly encoded portion of a
* larger string.
*/
- enlargePQExpBuffer(id_return, 2);
- pg_encoding_set_invalid(encoding,
- id_return->data + id_return->len);
- id_return->len += 2;
- id_return->data[id_return->len] = '0円';
+ if (enlargePQExpBuffer(id_return, 2))
+ {
+ pg_encoding_set_invalid(encoding,
+ id_return->data + id_return->len);
+ id_return->len += 2;
+ id_return->data[id_return->len] = '0円';
+ }
/*
* Handle the following bytes as if this byte didn't exist.