Mercurial > audlegacy
changeset 4862:7ec3621a9f9b
We only need the results of the stat once, do not bother with a variable at all. From code analysis, unique ID uYRsrf.
author | Tony Vroon <chainsaw@gentoo.org> |
---|---|
date | Sun, 19 Apr 2009 23:26:48 +0100 |
parents | 05baced7e1e7 |
children | 4cfb5217560a |
files | src/audlegacy/playlist.c |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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)