diff options
author | Chris Down <chris@chrisdown.name> | 2019-12-30 20:28:04 +0000 |
---|---|---|
committer | wm4 <1387750+wm4@users.noreply.github.com> | 2019-12-31 00:17:07 +0100 |
commit | b721f9d0957c5c30f86ff485240f68881fc329a6 (patch) | |
tree | a23a9047182fecef235591ca89be9cc11cf97890 /player | |
parent | fcf0b80dc9dd3ed29e45451bda6315ce0c2b4729 (diff) | |
download | mpv-b721f9d0957c5c30f86ff485240f68881fc329a6.tar.bz2 mpv-b721f9d0957c5c30f86ff485240f68881fc329a6.tar.xz |
configfiles: Fix utime retcode check
In final fixups for #7139 it seems I managed to screw up utime error
checks. Everything still works, but we MP_WARN when we don't need to.
Diffstat (limited to 'player')
-rw-r--r-- | player/configfiles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/configfiles.c b/player/configfiles.c index 658b3549bc..5cea24e22c 100644 --- a/player/configfiles.c +++ b/player/configfiles.c @@ -177,7 +177,7 @@ static bool copy_mtime(const char *f1, const char *f2) .modtime = st1.st_mtime, }; - if (!utime(f2, &ut)) + if (utime(f2, &ut) != 0) return false; return true; |