masqmail
changeset 27:3654c502a4df
g_malloc terminates the program on failure automatically
author | meillo@marmaro.de |
---|---|
date | Thu, 06 May 2010 11:50:40 +0200 |
parents | 607221b0dac1 |
children | 71605f542ecc |
files | src/peopen.c src/readsock.c |
diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
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)) {