git: sbin/hammer: Fix trailing blank line in config data output

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Mar 5 03:54:56 PST 2016


commit 270c68de8fa83ab51f6834e07549992273157447
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Fri Mar 4 05:11:11 2016 +0900

    sbin/hammer: Fix trailing blank line in config data output
    
    hammer show needs to ignore the last string "" after strsep(3)
    replaces \n at the end of config data with \0, in order not to
    print an extra blank line that shouldn't be printed.
    
    (This also ignores the real blank line, but there are usually
    no blank lines in config data)

Summary of changes:
 sbin/hammer/cmd_show.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/270c68de8fa83ab51f6834e07549992273157447


-- 
DragonFly BSD source repository



More information about the Commits mailing list