chiark / gitweb /
vconsole: don't parse Fedora's KEYMAP= kernel parameters anymore
[elogind.git] / src / timedated.c
index b2a56e7cb0d7b1f39a0f9f527443b74602f115df..f6fe2d83b646429c5ca04c45d137664a00d9eea9 100644 (file)
@@ -70,7 +70,7 @@
 
 #define INTERFACES_LIST                         \
         BUS_GENERIC_INTERFACES_LIST             \
-        "org.freedesktop.locale1\0"
+        "org.freedesktop.timedate1\0"
 
 const char timedate_interface[] _introspect_("timedate1") = INTERFACE;
 
@@ -246,7 +246,7 @@ static int write_data_local_rtc(void) {
 
                 p++;
                 e = strchr(p, '\n');
-                if (!p) {
+                if (!e) {
                         free(s);
                         return -EIO;
                 }