diff options
Diffstat (limited to 'src/timedated.c')
-rw-r--r-- | src/timedated.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timedated.c b/src/timedated.c index 66e50a6868..f6fe2d83b6 100644 --- a/src/timedated.c +++ b/src/timedated.c @@ -246,7 +246,7 @@ static int write_data_local_rtc(void) { p++; e = strchr(p, '\n'); - if (!p) { + if (!e) { free(s); return -EIO; } |