changeset 20592:383b9180b2c8

Initialize file-descriptors to -1.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 21 Sep 2007 12:48:42 +0000
parents 06d09b778992
children b6a01d947a8a
files libpurple/ft.c libpurple/util.c
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/ft.c	Fri Sep 21 07:38:26 2007 +0000
+++ b/libpurple/ft.c	Fri Sep 21 12:48:42 2007 +0000
@@ -67,6 +67,7 @@
 	xfer->ui_ops  = purple_xfers_get_ui_ops();
 	xfer->message = NULL;
 	xfer->current_buffer_size = FT_INITIAL_BUFFER_SIZE;
+	xfer->fd = -1;
 
 	ui_ops = purple_xfer_get_ui_ops(xfer);
 
--- a/libpurple/util.c	Fri Sep 21 07:38:26 2007 +0000
+++ b/libpurple/util.c	Fri Sep 21 12:48:42 2007 +0000
@@ -3854,6 +3854,7 @@
 	gfud->full = full;
 	gfud->request = g_strdup(request);
 	gfud->include_headers = include_headers;
+	gfud->fd = -1;
 
 	purple_url_parse(url, &gfud->website.address, &gfud->website.port,
 				   &gfud->website.page, &gfud->website.user, &gfud->website.passwd);