* remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
allocated file descriptors.
+2007-08-09 Maxim Grigoriev <maxim2405@gmail.com>
+
+ * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
+ allocated file descriptors.
+
2007-08-10 Joel Brobecker <brobecker@adacore.com>
* Makefile.in: Minor cleanup throughout; add some missing variables,
static int
remote_fileio_resize_fd_map (void)
{
+ int i = remote_fio_data.fd_map_size;
+
if (!remote_fio_data.fd_map)
return remote_fileio_init_fd_map ();
remote_fio_data.fd_map_size += 10;
remote_fio_data.fd_map =
(int *) xrealloc (remote_fio_data.fd_map,
remote_fio_data.fd_map_size * sizeof (int));
+ for (; i < remote_fio_data.fd_map_size; i++)
+ remote_fio_data.fd_map[i] = FIO_FD_INVALID;
return remote_fio_data.fd_map_size - 10;
}