[libmediaart] extract: Initialize variable
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libmediaart] extract: Initialize variable
- Date: Wed, 14 Dec 2016 23:19:11 +0000 (UTC)
commit 187eea4359e88589beb7ecebae61599982090e1e
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Dec 15 00:11:32 2016 +0100
extract: Initialize variable
There are paths where the stop variable is not set, so might
end up with an uninitialized value when checked.
libmediaart/extract.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libmediaart/extract.c b/libmediaart/extract.c
index 1169d2c..a388cd0 100644
--- a/libmediaart/extract.c
+++ b/libmediaart/extract.c
@@ -328,7 +328,7 @@ file_get_checksum_if_exists (GChecksumType checksum_type,
GError *local_error = NULL;
gssize rsize;
guchar buffer[1024];
- gboolean stop;
+ gboolean stop = FALSE;
file = g_file_new_for_path (path);
stream = g_file_read (file, NULL, &local_error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]