[tracker/tracker-0.10] tracker-extract-oasis: NULLify variable
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] tracker-extract-oasis: NULLify variable
- Date: Thu, 7 Apr 2011 13:42:45 +0000 (UTC)
commit bd427972ea85ba02893264099e3d62686775f7de
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Apr 1 10:32:17 2011 +0200
tracker-extract-oasis: NULLify variable
It was leading to invalid frees if there was any error on extracting
the document file content.
src/tracker-extract/tracker-extract-oasis.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-oasis.c b/src/tracker-extract/tracker-extract-oasis.c
index e473b68..2f5671e 100644
--- a/src/tracker-extract/tracker-extract-oasis.c
+++ b/src/tracker-extract/tracker-extract-oasis.c
@@ -116,7 +116,7 @@ extract_oasis_content (const gchar *uri,
ODTFileType file_type,
TrackerSparqlBuilder *metadata)
{
- gchar *content;
+ gchar *content = NULL;
ODTContentParseInfo info;
GMarkupParseContext *context;
GError *error = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]