summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2006-10-29 09:18:43 +0000
committerBastien Nocera <hadess@src.gnome.org>2006-10-29 09:18:43 +0000
commit578aff909a104001b22fd572bdf80a300121cdd0 (patch)
tree2db0c6bb3a5c9aa5d73bce41d8943f80c0b4d04f
parentcc10a93e5b0a8cea1a02143f6e626d432e45b08e (diff)
downloadtotem-578aff909a104001b22fd572bdf80a300121cdd0.tar.gz
initialise bytes_read to avoid problems with gnome-vfs not initialising it
2006-10-29 Bastien Nocera <hadess@hadess.net> * src/plparse/totem-pl-parser.c: (my_gnome_vfs_get_mime_type_with_data): initialise bytes_read to avoid problems with gnome-vfs not initialising it (See bug #366331)
-rw-r--r--ChangeLog7
-rw-r--r--src/plparse/totem-pl-parser.c1
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8c78bb206..9766cae33 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-10-29 Bastien Nocera <hadess@hadess.net>
+
+ * src/plparse/totem-pl-parser.c:
+ (my_gnome_vfs_get_mime_type_with_data): initialise bytes_read
+ to avoid problems with gnome-vfs not initialising it
+ (See bug #366331)
+
2006-10-27 Tim-Philipp Müller <tim at centricular dot net>
* src/totem-mozilla-viewer.c: (on_error_event),
diff --git a/src/plparse/totem-pl-parser.c b/src/plparse/totem-pl-parser.c
index 042c91023..3f8c12fd1 100644
--- a/src/plparse/totem-pl-parser.c
+++ b/src/plparse/totem-pl-parser.c
@@ -278,6 +278,7 @@ my_gnome_vfs_get_mime_type_with_data (const char *uri, gpointer *data, TotemPlPa
/* Read the whole thing, up to MIME_READ_CHUNK_SIZE */
buffer = NULL;
total_bytes_read = 0;
+ bytes_read = 0;
do {
buffer = g_realloc (buffer, total_bytes_read
+ MIME_READ_CHUNK_SIZE);