Skip to content

J1939: Handle localtime_r() failure in TD PG#627

Merged
marckleinebudde merged 1 commit into
linux-can:masterfrom
SamantazFox:patch-2
May 11, 2026
Merged

J1939: Handle localtime_r() failure in TD PG#627
marckleinebudde merged 1 commit into
linux-can:masterfrom
SamantazFox:patch-2

Conversation

@SamantazFox
Copy link
Copy Markdown
Contributor

@SamantazFox SamantazFox commented May 5, 2026

When the call to localtime_r() fails (by returning NULL, as per the POSIX specification), make sure to fill the hour/minute offsets with the fallback values as specified in the J1939DA supporting information.

Copy link
Copy Markdown
Member

@marckleinebudde marckleinebudde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Just a cosmetic change.

Comment thread j1939_timedate/j1939_timedate_srv.c Outdated
When the call to localtime_r() fails (by returning NULL, as per the POSIX specification), make sure to fill the hour/minute offsets with the fallback values as specified in the J1939DA supporting information.
@marckleinebudde marckleinebudde merged commit 14245b7 into linux-can:master May 11, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants