Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitb0eff10

Browse files
committed
Add pg_nodiscard decorations to base64 functions
The result of pg_b64_encode() and pg_b64_decode() should be checkedfor errors. This attribute could detect mistakes such as those fixedin commitff030eb andd278541.Reviewed-by: Michael Paquier <michael@paquier.xyz>Reviewed-by: Ranier Vilela <ranier.vf@gmail.com>Discussion:https://www.postgresql.org/message-id/flat/CAEudQAq-3yHsSdWoOOaw%2BgAQYgPMpMGuB5pt2yCXgv-YuxG2Hg%40mail.gmail.com
1 parenta6c70f6 commitb0eff10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/include/common/base64.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#defineBASE64_H
1212

1313
/* base 64 */
14-
externintpg_b64_encode(constchar*src,intlen,char*dst,intdstlen);
15-
externintpg_b64_decode(constchar*src,intlen,char*dst,intdstlen);
14+
externpg_nodiscardintpg_b64_encode(constchar*src,intlen,char*dst,intdstlen);
15+
externpg_nodiscardintpg_b64_decode(constchar*src,intlen,char*dst,intdstlen);
1616
externintpg_b64_enc_len(intsrclen);
1717
externintpg_b64_dec_len(intsrclen);
1818

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp