[tracker/tracker-0.10] libtracker-common: Fix C warnings
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] libtracker-common: Fix C warnings
- Date: Thu, 19 May 2011 15:40:55 +0000 (UTC)
commit 88b2dd112feabbfd0013c2b8cbbb10e3cf414f54
Author: Jürg Billeter <j bitron ch>
Date: Thu May 12 16:28:37 2011 +0200
libtracker-common: Fix C warnings
src/libtracker-common/tracker-type-utils.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-common/tracker-type-utils.c b/src/libtracker-common/tracker-type-utils.c
index bed3e18..3b9d4f6 100644
--- a/src/libtracker-common/tracker-type-utils.c
+++ b/src/libtracker-common/tracker-type-utils.c
@@ -147,7 +147,7 @@ tracker_string_list_to_gslist (gchar **strv,
list = NULL;
- for (i = 0; i < size; i++) {
+ for (i = 0; i < size_used; i++) {
if (strv[i]) {
list = g_slist_prepend (list, g_strdup (strv[i]));
} else {
@@ -177,7 +177,7 @@ tracker_string_list_to_string (gchar **strv,
string = g_string_new ("");
- for (i = 0; i < size; i++) {
+ for (i = 0; i < size_used; i++) {
if (strv[i]) {
if (i > 0) {
g_string_append_c (string, sep);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]