Mark (char *) variable as const, to quiet compilers XL9_5_STABLE
authorTomas Vondra <[email protected]>
Fri, 12 Oct 2018 13:17:42 +0000 (15:17 +0200)
committerTomas Vondra <[email protected]>
Fri, 12 Oct 2018 13:17:42 +0000 (15:17 +0200)
src/backend/pgxc/pool/pgxcnode.c

index e9516cf733d1081da2894e6d991aa6e2127648c6..3c5d487475d4a8b248ba0d3cd7b34f0e5687e1d5 100644 (file)
@@ -2672,7 +2672,7 @@ get_set_command(List *param_list, StringInfo command, bool local)
        foreach (lc, param_list)
        {
                ParamEntry *entry = (ParamEntry *) lfirst(lc);
-               char *value = NameStr(entry->value);
+               const char *value = NameStr(entry->value);
 
                if (strlen(value) == 0)
                        value = "''";