comparison src/remote.c @ 1367:fe4da037be21

When g_new0() is used, drop redundant initializations to NULL, FALSE or 0, second pass.
author zas_
date Sun, 01 Mar 2009 23:14:19 +0000
parents e8f21b91885d
children 9fe2fede7ae5
comparison
equal deleted inserted replaced
1366:ff3cd67235af 1367:fe4da037be21
224 close(fd); 224 close(fd);
225 return NULL; 225 return NULL;
226 } 226 }
227 227
228 rc = g_new0(RemoteConnection, 1); 228 rc = g_new0(RemoteConnection, 1);
229
229 rc->server = TRUE; 230 rc->server = TRUE;
230 rc->fd = fd; 231 rc->fd = fd;
231 rc->path = g_strdup(path); 232 rc->path = g_strdup(path);
232
233 rc->read_func = NULL;
234 rc->read_data = NULL;
235
236 rc->clients = NULL;
237 233
238 channel = g_io_channel_unix_new(rc->fd); 234 channel = g_io_channel_unix_new(rc->fd);
239 g_io_channel_set_flags(channel, G_IO_FLAG_NONBLOCK, NULL); 235 g_io_channel_set_flags(channel, G_IO_FLAG_NONBLOCK, NULL);
240 236
241 rc->channel_id = g_io_add_watch_full(channel, G_PRIORITY_DEFAULT, G_IO_IN, 237 rc->channel_id = g_io_add_watch_full(channel, G_PRIORITY_DEFAULT, G_IO_IN,