]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/systemctl/systemctl.c
Merge pull request #9600 from keszybz/systemctl-mask-check
[thirdparty/systemd.git] / src / systemctl / systemctl.c
index 23a9e44abdce612a35283218a221977a847cd83e..6f8934eef08b7b6c22765e14fcf37a3bd65a5b26 100644 (file)
@@ -7871,7 +7871,8 @@ static int parse_shutdown_time_spec(const char *t, usec_t *_u) {
                 tm.tm_min = (int) minute;
                 tm.tm_sec = 0;
 
-                assert_se(s = mktime(&tm));
+                s = mktime(&tm);
+                assert(s >= 0);
 
                 *_u = (usec_t) s * USEC_PER_SEC;