about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/time/clock_settime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/clock_settime.c b/src/time/clock_settime.c
index 5fdaeb9e..1004ed15 100644
--- a/src/time/clock_settime.c
+++ b/src/time/clock_settime.c
@@ -17,7 +17,7 @@ int clock_settime(clockid_t clk, const struct timespec *ts)
 		return __syscall_ret(r);
 	if (!IS32BIT(s))
 		return __syscall_ret(-ENOTSUP);
-	return syscall(SYS_clock_settime, clk, ts ? ((long[]){s, ns}) : 0);
+	return syscall(SYS_clock_settime, clk, ((long[]){s, ns}));
 #else
 	return syscall(SYS_clock_settime, clk, ts);
 #endif