]> granicus.if.org Git - postgresql/commitdiff
Fix brain-dead placement of global variable declaration.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 27 Mar 2004 03:08:42 +0000 (03:08 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 27 Mar 2004 03:08:42 +0000 (03:08 +0000)
src/interfaces/libpq/fe-secure.c

index c72f5f1032de62ffd3a295afbeb5de5b0fcb882d..83edb06c26e6dae8988d5452d3833c2b36abab99 100644 (file)
@@ -11,7 +11,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.38 2004/03/24 03:44:59 momjian Exp $
+ *       $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.39 2004/03/27 03:08:42 tgl Exp $
  *
  * NOTES
  *       The client *requires* a valid server certificate.  Since
@@ -145,6 +145,8 @@ static void SSLerrfree(char *buf);
 #endif
 
 #ifdef USE_SSL
+bool pq_initssllib = true;
+
 static SSL_CTX *SSL_context = NULL;
 #endif
 
@@ -856,9 +858,7 @@ pq_lockingcallback(int mode, int n, const char *file, int line)
        }
 }
 
-bool pq_initssllib = true;
-
-#endif /* ENABLE_THRAD_SAFETY */
+#endif /* ENABLE_THREAD_SAFETY */
 
 static int
 init_ssl_system(PGconn *conn)