aboutsummaryrefslogtreecommitdiff
path: root/c/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/common.c')
-rw-r--r--c/common.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/c/common.c b/c/common.c
index 9a3baa8..6f7772c 100644
--- a/c/common.c
+++ b/c/common.c
@@ -32,9 +32,15 @@ TszFromSz(const char *sz, int iCp)
int
Watched(int iEpisode)
{
+ fid_t f;
term_t t;
+
+ F(f);
t = T(1);
- PI(t,iEpisode) return 0;
- P("track_episodes","watched",1,t) return 0;
+ PI(t,iEpisode) goto f;
+ P("track_episodes","watched",1,t) goto f;
+ Fd(f);
return 1;
+f: Fd(f);
+ return 0;
}