diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-02-29 20:32:02 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-02-29 20:32:02 +0100 |
commit | ecb7c4488eb67ff2058f1efc4ea3e56678e38cb9 (patch) | |
tree | 6af5e0829fae615ff89052100495cb922a18b1d1 /src/timedate/timedated.c | |
parent | 95979cb3e6cc01a745dff659ab90388db733fc35 (diff) | |
parent | 07edd3b9e5855332a02ef7b91602c93aa12c1fd1 (diff) |
Merge pull request #2769 from martinpitt/adjtime
Fixes for adjtime parsing
Diffstat (limited to 'src/timedate/timedated.c')
-rw-r--r-- | src/timedate/timedated.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index 9406d28abe..0febc36af8 100644 --- a/src/timedate/timedated.c +++ b/src/timedate/timedated.c @@ -131,10 +131,10 @@ static int context_write_data_local_rtc(Context *c) { size_t a, b; p = strchrnul(s, '\n'); - if (*p == '\0') { + if (*p == '\0') /* only one line, no \n terminator */ prepend = "\n0\n"; - } else if (p[1] == '\0') { + else if (p[1] == '\0') { /* only one line, with \n terminator */ ++p; prepend = "0\n"; |