aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2020-12-02 12:31:10 +0900
committerMichael Paquier <michael@paquier.xyz>2020-12-02 12:31:10 +0900
commit91624c2ff8809145880383b0fa84be0ee98f55b5 (patch)
tree553c0a80a8806f9c65ad226132ebb3eea30f24de /src
parent942305a36365433eff3c1937945758f2dbf1662b (diff)
downloadpostgresql-91624c2ff8809145880383b0fa84be0ee98f55b5.tar.gz
postgresql-91624c2ff8809145880383b0fa84be0ee98f55b5.zip
Fix compilation warnings in cryptohash_openssl.c
These showed up with -O2. Oversight in 87ae969. Author: Fujii Masao Discussion: https://postgr.es/m/cee3df00-566a-400c-1252-67c3701f918a@oss.nttdata.com
Diffstat (limited to 'src')
-rw-r--r--src/common/cryptohash_openssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/cryptohash_openssl.c b/src/common/cryptohash_openssl.c
index 8e2c69b48bb..33f17cac33d 100644
--- a/src/common/cryptohash_openssl.c
+++ b/src/common/cryptohash_openssl.c
@@ -119,7 +119,7 @@ pg_cryptohash_init(pg_cryptohash_ctx *ctx)
int
pg_cryptohash_update(pg_cryptohash_ctx *ctx, const uint8 *data, size_t len)
{
- int status;
+ int status = 0;
if (ctx == NULL)
return 0;
@@ -154,7 +154,7 @@ pg_cryptohash_update(pg_cryptohash_ctx *ctx, const uint8 *data, size_t len)
int
pg_cryptohash_final(pg_cryptohash_ctx *ctx, uint8 *dest)
{
- int status;
+ int status = 0;
if (ctx == NULL)
return 0;