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

Commitfa70830

Browse files
committed
Do not palloc0() DictInfo, MemSet() it
1 parent38b259f commitfa70830

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/shared_ispell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ dispell_lexize(PG_FUNCTION_ARGS)
620620
MemoryContextResetAndDeleteChildren(saveInfo.saveCntx);
621621
ctx=MemoryContextSwitchTo(saveInfo.saveCntx);
622622

623-
info=palloc0(sizeof(*info));
623+
MemSet(info,0,sizeof(*info));
624624

625625
init_shared_dict(info,saveInfo.dictFile,
626626
saveInfo.affixFile,saveInfo.stopFile);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp