diff options
author | Bastien Nocera <hadess@hadess.net> | 2006-10-29 09:18:43 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@src.gnome.org> | 2006-10-29 09:18:43 +0000 |
commit | 578aff909a104001b22fd572bdf80a300121cdd0 (patch) | |
tree | 2db0c6bb3a5c9aa5d73bce41d8943f80c0b4d04f | |
parent | cc10a93e5b0a8cea1a02143f6e626d432e45b08e (diff) | |
download | totem-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-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/plparse/totem-pl-parser.c | 1 |
2 files changed, 8 insertions, 0 deletions
@@ -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); |