]> granicus.if.org Git - postgresql/commitdiff
Add const qualifier
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 22 Feb 2019 08:01:19 +0000 (09:01 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 22 Feb 2019 08:01:19 +0000 (09:01 +0100)
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.

src/interfaces/ecpg/ecpglib/misc.c

index 02338a41eae972d7fb2294e3caf39ef5fb3651df..6039837d252ab9c9b02a8913e11302bac75eca67 100644 (file)
@@ -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: