Skip to content

Commit fa70830

Browse files
committed
Do not palloc0() DictInfo, MemSet() it
1 parent 38b259f commit fa70830

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared_ispell.c

+1-1
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)