diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-02-04 14:40:06 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-02-04 14:40:06 +0000 |
commit | 4830642eba6b6dc741ee140088ee7e4be69ca8e8 (patch) | |
tree | 3617ba62085044f2bf73bd28b4e002e71d1fe020 /src/torrent.c | |
parent | f5fe60d8133ab3c7ca75fd80ed1c8d02d5e68e70 (diff) |
looks like GValue does initialising with = { 0 }
Diffstat (limited to 'src/torrent.c')
-rw-r--r-- | src/torrent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/torrent.c b/src/torrent.c index e004e4c..9cc4d10 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; + GValue a = { 0 }; json_node_get_value(percentDone, &a); switch (G_VALUE_TYPE(&a)) { case G_TYPE_INT64: |