xalloc+bzero -> xcalloc

This commit is contained in:
Adam Jackson
2008-10-06 14:19:30 -04:00
parent 9187f6ad9e
commit 0b7b89fbac
12 changed files with 19 additions and 58 deletions

View File

@@ -1127,12 +1127,10 @@ KdGetOptions (InputOption **options, char *string)
InputOption *newopt = NULL, **tmpo = NULL;
int tam_key = 0;
newopt = (InputOption *) xalloc(sizeof (InputOption));
newopt = xcalloc(1, sizeof (InputOption));
if (!newopt)
return FALSE;
bzero(newopt, sizeof (InputOption));
for (tmpo = options; *tmpo; tmpo = &(*tmpo)->next)
; /* Hello, I'm here */
*tmpo = newopt;