X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fupdate-utmp%2Fupdate-utmp.c;h=9184025554f03dc162c1096562aa1e81df496434;hb=e2acb67baaa1d63685dcaf80becf10291f13d086;hp=67c5788fe7663032a0077b90bb9c09e6c696a381;hpb=55f2dca329afd0dcdc4793ce3e945cb8af653937;p=elogind.git diff --git a/src/update-utmp/update-utmp.c b/src/update-utmp/update-utmp.c index 67c5788fe..918402555 100644 --- a/src/update-utmp/update-utmp.c +++ b/src/update-utmp/update-utmp.c @@ -48,7 +48,7 @@ typedef struct Context { static usec_t get_startup_time(Context *c) { const char *interface = "org.freedesktop.systemd1.Manager", - *property = "StartupTimestamp"; + *property = "UserspaceTimestamp"; usec_t t = 0; DBusMessage *reply = NULL; @@ -313,11 +313,10 @@ static int on_runlevel(Context *c) { int main(int argc, char *argv[]) { int r; DBusError error; - Context c; + Context c = {}; dbus_error_init(&error); - zero(c); #ifdef HAVE_AUDIT c.audit_fd = -1; #endif