From 4db583138b9556f72b13df7f66eeeace6a67ce3e Mon Sep 17 00:00:00 2001 From: Lance Date: Sat, 29 Apr 2006 04:00:19 +0000 Subject: * Using malloc for memory allocations that doesn't need to be pre-initialized. * Eliminated initializations for pointers returned by calloc. * Moved grfio_final to do_init since it's not used after server boot. * Optimized scripts to return CONSTSTR instead of allocating memory just to return a constant string. Some buildin functions still need work. * Disabled graph since it doesn't work yet. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6355 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/charsave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/charsave.c') diff --git a/src/map/charsave.c b/src/map/charsave.c index 01d6afc07..3f5241900 100644 --- a/src/map/charsave.c +++ b/src/map/charsave.c @@ -26,7 +26,7 @@ struct mmo_charstatus *charsave_loadchar(int charid){ char *str_p; friends = 0; - c = (struct mmo_charstatus *)aMalloc(sizeof(struct mmo_charstatus)); + c = (struct mmo_charstatus *)aCalloc(1,sizeof(struct mmo_charstatus)); if(charid <= 0){ ShowError("charsave_loadchar() charid <= 0! (%d)", charid); -- cgit v1.2.3-70-g09d2