summaryrefslogtreecommitdiff
path: root/src/torrent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/torrent.c')
-rw-r--r--src/torrent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/torrent.c b/src/torrent.c
index 9cc4d10..e004e4c 100644
--- a/src/torrent.c
+++ b/src/torrent.c
@@ -152,7 +152,7 @@ gboolean torrent_get_is_finished(JsonObject * t)
gdouble torrent_get_percent_done(JsonObject * t)
{
JsonNode *percentDone = json_object_get_member(t, FIELD_PERCENTDONE);
- GValue a = { 0 };
+ GValue a;
json_node_get_value(percentDone, &a);
switch (G_VALUE_TYPE(&a)) {
case G_TYPE_INT64: