commit | c55d30d85f1332f5022132c119ecfa3f2f16f4c5 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Sat Jan 09 12:20:50 2016 -0800 |
committer | Rob Landley <rob@landley.net> | Sun Jan 10 21:19:48 2016 -0600 |
tree | 7516ef0fad09b930de963e0db52bfbf251beeb31 | |
parent | e8943589a8404b96071eb1890d08d3c80941fae8 [diff] |
Fix hwclock -u. You can't pass a NULL value to setenv(3). The "put things back how they were" intent of this code is best achieved by calling unsetenv(3) in the NULL case. (This causes a crash with "hwclock -u" on Android. glibc silently corrupts the environment instead.)