diff options
Diffstat (limited to 'src/lib/dlt_user.c')
-rw-r--r-- | src/lib/dlt_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c index dbe8595..ef0f36f 100644 --- a/src/lib/dlt_user.c +++ b/src/lib/dlt_user.c @@ -1416,7 +1416,7 @@ DltReturnValue dlt_user_log_write_raw_formatted(DltContextData *log, void *data, uint32_t type_info = 0; // check nullpointer - if (log == NULL || data == NULL) + if (log == NULL || (data == NULL && length!=0)) return DLT_RETURN_WRONG_PARAMETER; // Have to cast type to signed type because some compilers assume that DltFormatType is unsigned and issue a warning |