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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy