Mercurial > 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 wrap: on
line diff
--- a/src/peopen.c Thu May 06 11:44:43 2010 +0200 +++ b/src/peopen.c Thu May 06 11:50:40 2010 +0200 @@ -33,8 +33,7 @@ const char *p; int i = 0; - arr = (char **) malloc(sizeof(char *) * count); - /* FIXME: check return value of malloc() */ + arr = (char **) g_malloc(sizeof(char *) * count); p = cmd; while (*p && i < (count - 1)) {