diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c index ca00eea4a..f4c581763 100644 --- a/src/sleep/sleep.c +++ b/src/sleep/sleep.c @@ -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. */