fix cppcheck errors

This commit is contained in:
Steve Karg
2022-09-10 21:00:16 -05:00
parent 457ceb4a25
commit 72ca232cab
+2 -1
View File
@@ -1569,7 +1569,8 @@ static int bacapp_snprintf_date(char *str, size_t str_len, BACNET_DATE *bdate)
int slen = 0;
/* false positive cppcheck - snprintf allows null pointers */
/* cppcheck-suppress [nullPointer, ctunullpointer] */
/* cppcheck-suppress nullPointer */
/* cppcheck-suppress ctunullpointer */
slen = snprintf(str, str_len, "%s, %s",
bactext_day_of_week_name(bdate->wday),
bactext_month_name(bdate->month));