mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
ID: 3568976 - 'sel set time' behaviour is inconsistent
Commit fixes missing '*'. Without it, not only the previous commit breaks more than it fixes, but it may (eventually) lead to segfault.
This commit is contained in:
parent
4a4b2e3b59
commit
1e83f7c88a
@ -2497,7 +2497,7 @@ ipmi_sel_set_time(struct ipmi_intf * intf, const char * time_string)
|
||||
gt_year=tm_tmp->tm_year;
|
||||
gt_yday=tm_tmp->tm_yday;
|
||||
gt_hour=tm_tmp->tm_hour;
|
||||
memset(&tm_tmp, 0, sizeof(struct tm));
|
||||
memset(&*tm_tmp, 0, sizeof(struct tm));
|
||||
tm_tmp=localtime(&t);
|
||||
lt_year=tm_tmp->tm_year;
|
||||
lt_yday=tm_tmp->tm_yday;
|
||||
|
Loading…
x
Reference in New Issue
Block a user