diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-10-01 10:38:54 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-10-01 10:38:54 +0000 |
commit | d37e60bf0ba266368bea34b6b080d17d52d3d32c (patch) | |
tree | 2f90a9af87f1001d47190767a7b270a2bf9e985f /src/torrent.h | |
parent | 607b8ae3d15b2b60dfb33777d6d6c0fd817ed05e (diff) |
fix a warning caused by divide by zero on empty files
Diffstat (limited to 'src/torrent.h')
-rw-r--r-- | src/torrent.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/torrent.h b/src/torrent.h index 75262ed..3925fc6 100644 --- a/src/torrent.h +++ b/src/torrent.h @@ -86,7 +86,8 @@ gint64 torrent_get_peer_limit(JsonObject * t); gboolean torrent_has_tracker(JsonObject * t, GRegex * rx, gchar * search); gint64 torrent_get_queue_position(JsonObject *args); gint64 torrent_get_activity_date(JsonObject *t); -gchar *torrent_get_full_path(JsonObject * obj); +gchar *torrent_get_full_dir(JsonObject * obj); +gchar *torrent_get_full_path(JsonObject *obj); /* outer response object */ |