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 ba185d3

Browse filesBrowse files
Remove redundant memset call following palloc0
This is a follow-up commit to ca7f8e2 which removed the allocation abstraction from pgcrypto and replaced px_alloc + memset calls with palloc0 calls. The particular memset in this commit was missed in that work though. Author: Zhihong Yu <zyu@yugabyte.com> Reviewed-by: Bruce Momjian <bruce@momjian.us> Reviewed-by: Nathan Bossart <nathandbossart@gmail.com> Discussion: https://postgr.es/m/CALNJ-vT5qRucrFMPSzQyAWods1b4MnNPG-M=_ZUzh1SoTh0vNw@mail.gmail.com
1 parent 2589434 commit ba185d3
Copy full SHA for ba185d3

File tree

Expand file treeCollapse file tree

1 file changed

+0
-1
lines changed
Filter options
  • contrib/pgcrypto
Expand file treeCollapse file tree

1 file changed

+0
-1
lines changed

‎contrib/pgcrypto/px.c

Copy file name to clipboardExpand all lines: contrib/pgcrypto/px.c
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ combo_init(PX_Combo *cx, const uint8 *key, unsigned klen,
203203
if (klen > ks)
204204
klen = ks;
205205
keybuf = palloc0(ks);
206-
memset(keybuf, 0, ks);
207206
memcpy(keybuf, key, klen);
208207

209208
err = px_cipher_init(c, keybuf, klen, ivbuf);

0 commit comments

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