Y
Hacker News
new
|
ask
|
show
|
jobs
by
dn3500
2118 days ago
The comment "initialize the utmp structure" is wrong. You have declared the struct here but it is uninitialized.
And there is no point in setting the locale, since your program never uses it.