Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73414
b: refs/heads/master
c: 4b07ae9
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan authored and Tony Luck committed Nov 6, 2007
1 parent 471bca4 commit 62dd189
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8d0a6e4da5ecde2022025ee764e4f7e425a53770
refs/heads/master: 4b07ae9b9d7b05a63e3ece32a666041949b7f421
5 changes: 3 additions & 2 deletions trunk/arch/ia64/kernel/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,10 @@ efi_gettimeofday (struct timespec *ts)
{
efi_time_t tm;

memset(ts, 0, sizeof(ts));
if ((*efi.get_time)(&tm, NULL) != EFI_SUCCESS)
if ((*efi.get_time)(&tm, NULL) != EFI_SUCCESS) {
memset(ts, 0, sizeof(*ts));
return;
}

ts->tv_sec = mktime(tm.year, tm.month, tm.day, tm.hour, tm.minute, tm.second);
ts->tv_nsec = tm.nanosecond;
Expand Down

0 comments on commit 62dd189

Please sign in to comment.