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 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)) {