git: Fix the two -Wdangling-pointer warnings in world.

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Apr 5 15:26:54 PDT 2026


commit 9245b098d8e5f26dfd4c5d3d4c4bf9efc6064912
Author: Sascha Wildner <saw at online.de>
Date:   Mon Apr 6 00:26:32 2026 +0200

    Fix the two -Wdangling-pointer warnings in world.
    
    Move line[] to function scope.
    
    -Wdangling-pointer was introduced in GCC 12 and is part of -Wall.
    
    Taken-from: FreeBSD

Summary of changes:
 libexec/ftpd/ftpd.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9245b098d8e5f26dfd4c5d3d4c4bf9efc6064912


-- 
DragonFly BSD source repository


More information about the Commits mailing list