git: sbin/newfs_msdos: Fix a couple of minor issues with newfs_msdos

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Mon Mar 30 07:03:03 PDT 2020


commit 8c741249a43755244aa31d570230f4ff3141f3ea
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Mon Mar 30 22:52:54 2020 +0900

    sbin/newfs_msdos: Fix a couple of minor issues with newfs_msdos
    
    - Do not unnecessarily strdup().
    - Check return value of getdiskinfo(), if it failed, bail out.
    
    from freebsd/freebsd at c5c4e23aeb0ac6661e653d907d7826d9ed819934

Summary of changes:
 sbin/newfs_msdos/mkfs_msdos.c  | 8 +++-----
 sbin/newfs_msdos/newfs_msdos.c | 3 +--
 2 files changed, 4 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8c741249a43755244aa31d570230f4ff3141f3ea


-- 
DragonFly BSD source repository



More information about the Commits mailing list