# HG changeset patch # User Tony Vroon # Date 1240180008 -3600 # Node ID 7ec3621a9f9bd5f70a8c93c83e3795acef1ef085 # Parent 05baced7e1e7f37745ba18947e7f1572e637ecd9 We only need the results of the stat once, do not bother with a variable at all. From code analysis, unique ID uYRsrf. diff -r 05baced7e1e7 -r 7ec3621a9f9b src/audlegacy/playlist.c --- a/src/audlegacy/playlist.c Sat Apr 18 11:58:27 2009 +0200 +++ b/src/audlegacy/playlist.c Sun Apr 19 23:26:48 2009 +0100 @@ -2190,14 +2190,8 @@ struct stat buf; time_t modtime; - gint rv; - - - rv = stat(a->filename, &buf); - - if (rv == 0) { + if (stat(a->filename, &buf) == 0) { modtime = buf.st_mtime; - rv = stat(b->filename, &buf); if (stat(b->filename, &buf) == 0) { if (buf.st_mtime == modtime)