Bugfix again
diff --git a/ChangeLog b/ChangeLog
index 7231adc..e441e64 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-27 Linus Walleij <triad@df.lth.se>
+
+ * src/libmtp.c: bugfixes again...
+
2009-08-25 Linus Walleij <triad@df.lth.se>
* src/libmtp.c: fix a bug where the metadata was cached
diff --git a/src/libmtp.c b/src/libmtp.c
index a86d75f..db833c2 100644
--- a/src/libmtp.c
+++ b/src/libmtp.c
@@ -2246,7 +2246,7 @@
}
/* mark last entry also */
params->objects[i].flags |= PTPOBJECT_OBJECTINFO_LOADED;
-
+ params->nrofobjects = i+1;
/* The device might not give the list in linear ascending order */
ptp_objects_sort (params);
return 0;