[tracker] tracker-extract: Minor optimizations & CC warning fix
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract: Minor optimizations & CC warning fix
- Date: Tue, 14 Feb 2012 15:15:40 +0000 (UTC)
commit 252e33f6762cf966d252150de42f3492dde91f53
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Feb 14 01:26:44 2012 +0200
tracker-extract: Minor optimizations & CC warning fix
https://bugzilla.gnome.org/show_bug.cgi?id=670023
src/tracker-extract/tracker-extract-iso.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-iso.c b/src/tracker-extract/tracker-extract-iso.c
index 658b438..f7854a8 100644
--- a/src/tracker-extract/tracker-extract-iso.c
+++ b/src/tracker-extract/tracker-extract-iso.c
@@ -42,7 +42,7 @@ tracker_extract_get_metadata (TrackerExtractInfo *info_)
GFile *file;
GError *error = NULL;
gchar *filename;
- OsinfoLoader *loader;
+ OsinfoLoader *loader = NULL;
OsinfoMedia *media;
OsinfoMedia *matched_media;
OsinfoDb *db;
@@ -50,8 +50,6 @@ tracker_extract_get_metadata (TrackerExtractInfo *info_)
/* Data input */
gboolean bootable;
- gboolean has_installer;
- gboolean is_live;
const gchar *id;
const gchar *name;
TrackerSparqlBuilder *metadata;
@@ -103,14 +101,12 @@ tracker_extract_get_metadata (TrackerExtractInfo *info_)
tracker_sparql_builder_object_string (metadata, name);
}
- is_live = osinfo_media_get_live (matched_media);
- if (is_live) {
+ if (osinfo_media_get_live (matched_media)) {
tracker_sparql_builder_predicate (metadata, "a");
tracker_sparql_builder_object (metadata, "nfo:OperatingSystem");
}
- has_installer = osinfo_media_get_installer (matched_media);
- if (has_installer) {
+ if (osinfo_media_get_installer (matched_media)) {
tracker_sparql_builder_predicate (metadata, "a");
tracker_sparql_builder_object (metadata, "osinfo:Installer");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]