gnome-vfs r5551 - in trunk: . modules



Author: alexl
Date: Thu Apr 16 09:07:05 2009
New Revision: 5551
URL: http://svn.gnome.org/viewvc/gnome-vfs?rev=5551&view=rev

Log:
2009-04-16  Alexander Larsson  <alexl redhat com>

	Bug 500307 â uninitialized GnomeVFSFileInfo struct in do_seek()

	* modules/sftp-method.c:
	(do_seek):
	Initialize info to avoid crashes.
	Patch from Fabrice Bellet



Modified:
   trunk/ChangeLog
   trunk/modules/sftp-method.c

Modified: trunk/modules/sftp-method.c
==============================================================================
--- trunk/modules/sftp-method.c	(original)
+++ trunk/modules/sftp-method.c	Thu Apr 16 09:07:05 2009
@@ -2387,7 +2387,7 @@
 	 GnomeVFSContext      *context)
 {
 	SftpOpenHandle *handle;
-	GnomeVFSFileInfo file_info;
+	GnomeVFSFileInfo file_info = { 0, };
 	GnomeVFSResult res;
 
 	DEBUG (g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s: Enter", G_STRFUNC));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]