Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3622c80

Browse filesBrowse files
committed
Avoid "unused variable" warning on non-USE_SSL_ENGINE platforms.
If we are building with openssl but USE_SSL_ENGINE didn't get set, initialize_SSL's variable "pkey" is declared but used nowhere. Apparently this combination hasn't been exercised in the buildfarm before now, because I've not seen this warning before, even though the code has been like this a long time. Move the declaration to silence the warning (and remove its useless initialization). Per buildfarm member sawshark. Back-patch to all supported branches.
1 parent 3d0f730 commit 3622c80
Copy full SHA for 3622c80

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/interfaces/libpq/fe-secure-openssl.c

Copy file name to clipboardExpand all lines: src/interfaces/libpq/fe-secure-openssl.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,6 @@ initialize_SSL(PGconn *conn)
902902
bool have_homedir;
903903
bool have_cert;
904904
bool have_rootcert;
905-
EVP_PKEY *pkey = NULL;
906905

907906
/*
908907
* We'll need the home directory if any of the relevant parameters are
@@ -1252,6 +1251,7 @@ initialize_SSL(PGconn *conn)
12521251
/* Colon, but not in second character, treat as engine:key */
12531252
char *engine_str = strdup(conn->sslkey);
12541253
char *engine_colon;
1254+
EVP_PKEY *pkey;
12551255

12561256
if (engine_str == NULL)
12571257
{

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.