projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97e52d6
)
run: arg_service_type is not supposed to be allocated from heap
author
Lennart Poettering
<lennart@poettering.net>
Tue, 19 Dec 2023 18:10:36 +0000
(19:10 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 20 Dec 2023 11:13:18 +0000
(12:13 +0100)
src/run/run.c
patch
|
blob
|
history
diff --git
a/src/run/run.c
b/src/run/run.c
index 88eca0fd6d172c1d68bc0473b65c92326ee735b5..68fb82ad3e97c699d1d7ae0d85d31c42179dc4c2 100644
(file)
--- a/
src/run/run.c
+++ b/
src/run/run.c
@@
-556,11
+556,8
@@
static int parse_argv(int argc, char *argv[]) {
return log_error_errno(r, "Failed to get current working directory: %m");
}
- if (!arg_service_type) {
- arg_service_type = strdup("exec");
- if (!arg_service_type)
- return log_oom();
- }
+ if (!arg_service_type)
+ arg_service_type = "exec";
arg_wait = true;
}