mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-07 06:03:51 +00:00
sleep: do not use strappenda in var declaration
Based on e2cc6eca73.
https://bugzilla.redhat.com/show_bug.cgi?id=1147610
This commit is contained in:
+3
-1
@@ -91,7 +91,9 @@ static int execute(char **modes, char **states) {
|
||||
char* arguments[4];
|
||||
int r;
|
||||
_cleanup_fclose_ FILE *f = NULL;
|
||||
const char* note = strappenda("SLEEP=", arg_verb);
|
||||
const char* note;
|
||||
|
||||
note = strappenda("SLEEP=", arg_verb);
|
||||
|
||||
/* This file is opened first, so that if we hit an error,
|
||||
* we can abort before modifying any state. */
|
||||
|
||||
Reference in New Issue
Block a user