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 91624c2

Browse filesBrowse 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
Copy full SHA for 91624c2

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed

‎src/common/cryptohash_openssl.c

Copy file name to clipboardExpand all lines: src/common/cryptohash_openssl.c
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.