commit | 7210c678202bb3107085bffeb63f66a9b8ba1c85 | [log] [tgz] |
---|---|---|
author | Kyle McMartin <kyle@shortfin.cabal.ca> | Sat Oct 20 13:23:00 2007 -0700 |
committer | Kyle McMartin <kyle@shortfin.cabal.ca> | Sat Oct 20 13:23:00 2007 -0700 |
tree | 522752089cb90b8aa6fc92d9c82caca8b7946810 | |
parent | 562d139cc587fc7f7fb8e07aad13cdd2a412c9a7 [diff] |
[PARISC] fix uninitialized variable warning in asm/rtc.h get_rtc_time, in the case that PDC returns that the battery is bad, returns an unmodified rtc_time arg to the caller, which then uses uninitialized values. Fix this by memset-ing the arg with zeroes, so it will at least be cleared if we return failure. Spotted by John David Anglin. Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>