masqmail-0.2

diff src/peopen.c @ 27:3654c502a4df

g_malloc terminates the program on failure automatically
author meillo@marmaro.de
date Thu, 06 May 2010 11:50:40 +0200
parents f671821d8222
children 7cdd30429cc9
line diff
     1.1 --- a/src/peopen.c	Thu May 06 11:44:43 2010 +0200
     1.2 +++ b/src/peopen.c	Thu May 06 11:50:40 2010 +0200
     1.3 @@ -33,8 +33,7 @@
     1.4  	const char *p;
     1.5  	int i = 0;
     1.6  
     1.7 -	arr = (char **) malloc(sizeof(char *) * count);
     1.8 -	/* FIXME: check return value of malloc() */
     1.9 +	arr = (char **) g_malloc(sizeof(char *) * count);
    1.10  
    1.11  	p = cmd;
    1.12  	while (*p && i < (count - 1)) {