]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
main: add missing return
authorDavid Tardon <dtardon@redhat.com>
Fri, 5 May 2023 06:46:51 +0000 (08:46 +0200)
committerDavid Tardon <dtardon@redhat.com>
Fri, 5 May 2023 06:49:37 +0000 (08:49 +0200)
Follow-up-for: 2b5107e1625e0847179da0d35eb544192766886f

src/core/main.c

index af88fe34bb9a48516f3d5b4798eddeaf9151fff5..0b2eb13d5e7435de9cd1fb90e9647f8c390e3aa7 100644 (file)
@@ -1004,7 +1004,7 @@ static int parse_argv(int argc, char *argv[]) {
 
                         r = safe_atoi(optarg, &fd);
                         if (r < 0)
-                                log_error_errno(r, "Failed to parse deserialize option \"%s\": %m", optarg);
+                                return log_error_errno(r, "Failed to parse deserialize option \"%s\": %m", optarg);
                         if (fd < 0)
                                 return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
                                                        "Invalid deserialize fd: %d",