git: fix(syslogd): check f_prevline content instead of array address

Matthew Dillon dillon at crater.dragonflybsd.org
Wed May 27 17:40:37 PDT 2026


commit bff3c620102795b9dd980c3ef30de4348f0c256a
Author: Abdelkader Boudih <dragonflybsd at seuros.com>
Date:   Sat May 23 14:10:11 2026 +0000

    fix(syslogd): check f_prevline content instead of array address
    
    f_prevline is a char[] struct member, so its address is always
    non-NULL. Check f_prevline[0] to test whether the previous line
    buffer contains a message, matching the existing check at line 1010.

Summary of changes:
 usr.sbin/syslogd/syslogd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bff3c620102795b9dd980c3ef30de4348f0c256a


-- 
DragonFly BSD source repository


More information about the Commits mailing list