diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-04-16 16:47:33 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-04-16 18:59:08 +0200 |
commit | f8e2fb7b14e53f5a4bcfd66d26910af1dee185c6 (patch) | |
tree | c8f7ab02b4525466984a7fa23ebedfde090ef168 /src/shared/util.c | |
parent | 9156e799a258658cf3f51434708cdb194c13eaa4 (diff) |
logind: add shutdown/suspend/idle inhibition framework
Diffstat (limited to 'src/shared/util.c')
-rw-r--r-- | src/shared/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index 0b4d4d6746..15c7f4d325 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -1690,7 +1690,8 @@ char *cescape(const char *s) { /* Does C style string escaping. */ - if (!(r = new(char, strlen(s)*4 + 1))) + r = new(char, strlen(s)*4 + 1); + if (!r) return NULL; for (f = s, t = r; *f; f++) |