mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
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
This commit is contained in:
@ -119,7 +119,7 @@ pg_cryptohash_init(pg_cryptohash_ctx *ctx)
|
|||||||
int
|
int
|
||||||
pg_cryptohash_update(pg_cryptohash_ctx *ctx, const uint8 *data, size_t len)
|
pg_cryptohash_update(pg_cryptohash_ctx *ctx, const uint8 *data, size_t len)
|
||||||
{
|
{
|
||||||
int status;
|
int status = 0;
|
||||||
|
|
||||||
if (ctx == NULL)
|
if (ctx == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
@ -154,7 +154,7 @@ pg_cryptohash_update(pg_cryptohash_ctx *ctx, const uint8 *data, size_t len)
|
|||||||
int
|
int
|
||||||
pg_cryptohash_final(pg_cryptohash_ctx *ctx, uint8 *dest)
|
pg_cryptohash_final(pg_cryptohash_ctx *ctx, uint8 *dest)
|
||||||
{
|
{
|
||||||
int status;
|
int status = 0;
|
||||||
|
|
||||||
if (ctx == NULL)
|
if (ctx == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user