[tracker] libtracker-extract: initialize value
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-extract: initialize value
- Date: Sun, 5 Jul 2015 10:33:55 +0000 (UTC)
commit 6916ee5e4ed8362fff990d6139fed29eea41f85e
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Jul 5 00:49:47 2015 +0200
libtracker-extract: initialize value
ucsdet_open() expects an status set to 0, otherwise it will bail out
early. With uninitialized memory we might or might not get that.
src/libtracker-extract/tracker-encoding-libicu.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-encoding-libicu.c
b/src/libtracker-extract/tracker-encoding-libicu.c
index feec102..8eb0add 100644
--- a/src/libtracker-extract/tracker-encoding-libicu.c
+++ b/src/libtracker-extract/tracker-encoding-libicu.c
@@ -34,7 +34,7 @@ tracker_encoding_guess_icu (const gchar *buffer,
UCharsetDetector *detector = NULL;
const UCharsetMatch *match;
gchar *charset = NULL;
- UErrorCode status;
+ UErrorCode status = 0;
const char *p_match = NULL;
detector = ucsdet_open (&status);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]