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:
Zbigniew Jędrzejewski-Szmek
2015-02-05 14:09:34 -05:00
parent 838ec2a9a6
commit 097e69a5fa
+3 -1
View File
@@ -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. */