Branch: Tag:

2014-11-03

2014-11-03 10:12:25 by Martin Nilsson <nilsson@opera.com>

malloc -> calloc

458: Inside #if defined(HAVE_PIKE_SEND_FD)
   free(fd_info);    fd_info = other_fd_info;    } else { -  int *new_fd_info = malloc(num_fds * sizeof(int)); +  int *new_fd_info = calloc(num_fds, sizeof(int));    if (!new_fd_info) {    /* FIXME: Huston, we have a problem... */    Pike_fatal("Out of memory in send_fd().\n");