COVESA/dlt-daemon

Why is zero assigned to null pointer?

Closed this issue · 2 comments

#ifdef DLT_FATAL_LOG_RESET_ENABLE

In the macro, pointer *p is NULL. Then, in the next line, 0 is assigned to *p.
What is the reason?

It's to make the application crash in case of fatal logs (if the feature is enabled, default=off).

Details can be found in the corresponding commit message: fc91110

@michael-methner Thanks. Get it.