diff options
-rw-r--r-- | lib/ipmi_sel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ipmi_sel.c b/lib/ipmi_sel.c index b6b8da1..6f509d0 100644 --- a/lib/ipmi_sel.c +++ b/lib/ipmi_sel.c @@ -2762,7 +2762,7 @@ ipmi_sel_set_time(struct ipmi_intf * intf, const char * time_string) else { bool error = true; /* Assume the string is invalid */ /* Now let's extract time_t from the supplied string */ - if (!strptime(time_string, time_format, &tm)) { + if (strptime(time_string, time_format, &tm) != NULL) { tm.tm_isdst = (-1); /* look up DST information */ t = mktime(&tm); if (t >= 0) { |