From d37e60bf0ba266368bea34b6b080d17d52d3d32c Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Sat, 1 Oct 2011 10:38:54 +0000 Subject: fix a warning caused by divide by zero on empty files --- src/torrent.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/torrent.h') 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 */ -- cgit v1.2.3