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:
Zdenek Styblik 2012-10-02 18:55:41 +00:00
parent 4a4b2e3b59
commit 1e83f7c88a

View File

@ -2497,7 +2497,7 @@ ipmi_sel_set_time(struct ipmi_intf * intf, const char * time_string)
gt_year=tm_tmp->tm_year; gt_year=tm_tmp->tm_year;
gt_yday=tm_tmp->tm_yday; gt_yday=tm_tmp->tm_yday;
gt_hour=tm_tmp->tm_hour; gt_hour=tm_tmp->tm_hour;
memset(&tm_tmp, 0, sizeof(struct tm)); memset(&*tm_tmp, 0, sizeof(struct tm));
tm_tmp=localtime(&t); tm_tmp=localtime(&t);
lt_year=tm_tmp->tm_year; lt_year=tm_tmp->tm_year;
lt_yday=tm_tmp->tm_yday; lt_yday=tm_tmp->tm_yday;