file-roller r2640 - in trunk: . src



Author: paobac
Date: Tue Mar 31 17:13:18 2009
New Revision: 2640
URL: http://svn.gnome.org/viewvc/file-roller?rev=2640&view=rev

Log:
2009-03-31  Paolo Bacchilega  <paobac svn gnome org>

	* src/file-utils.c (get_file_size): init size to 0
	
	Fixes bug #576960 â file-roller shows random filesize for 
	zero bytes files.


Modified:
   trunk/ChangeLog
   trunk/src/file-utils.c

Modified: trunk/src/file-utils.c
==============================================================================
--- trunk/src/file-utils.c	(original)
+++ trunk/src/file-utils.c	Tue Mar 31 17:13:18 2009
@@ -328,9 +328,9 @@
 goffset
 get_file_size (const char *uri)
 {
+	goffset    size = 0;
 	GFile     *file;
 	GFileInfo *info;
-	goffset    size;
 	GError    *err = NULL;
 
 	if ((uri == NULL) || (*uri == '\0'))



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