]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix use of volatile.
authorJeff Davis <jdavis@postgresql.org>
Wed, 11 Mar 2026 21:27:58 +0000 (14:27 -0700)
committerJeff Davis <jdavis@postgresql.org>
Wed, 11 Mar 2026 21:27:58 +0000 (14:27 -0700)
Commit 8185bb5347 misused volatile. Fix it. See also 6307b096e25.

Reported-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/1bb21c7d-885f-4f07-a3ed-21b60d7c92c6@eisentraut.org

src/backend/foreign/foreign.c

index c53699959eafeb68911186cd3af674a9fc83753b..9ea93b35e8666f4e0a4e8f8b93f66940e1af59c0 100644 (file)
@@ -225,7 +225,7 @@ ForeignServerConnectionString(Oid userid, Oid serverid)
 {
        MemoryContext tempContext;
        MemoryContext oldcxt;
-       volatile text *connection_text = NULL;
+       text       *volatile connection_text = NULL;
        char       *result = NULL;
 
        /*