From: Peter Eisentraut Date: Fri, 22 Feb 2019 08:01:19 +0000 (+0100) Subject: Add const qualifier X-Git-Tag: REL_12_BETA1~687 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1373ba55c9b9c9a5e4705daa03643255b4de1519;p=postgresql Add const qualifier New code introduced in 050710b36964dee7e1b2bf6b5ef00041fd5d2787. The lack of const is not currently a compiler warning, but it's nice to have for consistency with surrounding code. --- diff --git a/src/interfaces/ecpg/ecpglib/misc.c b/src/interfaces/ecpg/ecpglib/misc.c index 02338a41ea..6039837d25 100644 --- a/src/interfaces/ecpg/ecpglib/misc.c +++ b/src/interfaces/ecpg/ecpglib/misc.c @@ -432,7 +432,7 @@ ECPGis_noind_null(enum ECPGttype type, const void *ptr) return true; break; case ECPGt_bytea: - if (((struct ECPGgeneric_bytea *) ptr)->len == 0) + if (((const struct ECPGgeneric_bytea *) ptr)->len == 0) return true; break; case ECPGt_decimal: