Skip to content

Commit 91624c2

Browse files
committed
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
1 parent 942305a commit 91624c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/cryptohash_openssl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pg_cryptohash_init(pg_cryptohash_ctx *ctx)
119119
int
120120
pg_cryptohash_update(pg_cryptohash_ctx *ctx, const uint8 *data, size_t len)
121121
{
122-
int status;
122+
int status = 0;
123123

124124
if (ctx == NULL)
125125
return 0;
@@ -154,7 +154,7 @@ pg_cryptohash_update(pg_cryptohash_ctx *ctx, const uint8 *data, size_t len)
154154
int
155155
pg_cryptohash_final(pg_cryptohash_ctx *ctx, uint8 *dest)
156156
{
157-
int status;
157+
int status = 0;
158158

159159
if (ctx == NULL)
160160
return 0;

0 commit comments

Comments
 (0)