Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d61f54b

Browse files
committed
Another fix by A.Zakirov to shared_ispell: Do not palloc0() DictInfo, MemSet() it
1 parent ac933b0 commit d61f54b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/shared_ispell/src/shared_ispell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ dispell_lexize(PG_FUNCTION_ARGS)
626626
MemoryContextResetAndDeleteChildren(saveInfo.saveCntx);
627627
ctx = MemoryContextSwitchTo(saveInfo.saveCntx);
628628

629-
info = palloc0(sizeof(*info));
629+
MemSet(info, 0, sizeof(*info));
630630

631631
init_shared_dict(info, saveInfo.dictFile,
632632
saveInfo.affixFile, saveInfo.stopFile);

0 commit comments

Comments
 (0)