comparison src/readsock.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 41958685480d
comparison
equal deleted inserted replaced
26:607221b0dac1 27:3654c502a4df
147 if (flags & READSOCKL_CHUG) { 147 if (flags & READSOCKL_CHUG) {
148 _read_chug(in); 148 _read_chug(in);
149 } 149 }
150 150
151 if (!*pbuf) 151 if (!*pbuf)
152 *pbuf = malloc(size); 152 *pbuf = g_malloc(size);
153 buf = *pbuf; 153 buf = *pbuf;
154 154
155 while (1) { 155 while (1) {
156 int pp; 156 int pp;
157 157