summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Down <chris@chrisdown.name>2019-12-30 20:28:04 +0000
committerwm4 <1387750+wm4@users.noreply.github.com>2019-12-31 00:17:07 +0100
commitb721f9d0957c5c30f86ff485240f68881fc329a6 (patch)
treea23a9047182fecef235591ca89be9cc11cf97890
parentfcf0b80dc9dd3ed29e45451bda6315ce0c2b4729 (diff)
downloadmpv-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.
-rw-r--r--player/configfiles.c2
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;