git: cpdup(1): Check the return value of asprintf() and exit if fails

Aaron LI aly at crater.dragonflybsd.org
Tue Oct 29 07:55:18 PDT 2019


commit 60374ee737a54737c84ce87a466edbf6457dbbda
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Oct 29 22:52:48 2019 +0800

    cpdup(1): Check the return value of asprintf() and exit if fails
    
    See also: https://github.com/DragonFlyBSD/cpdup/commit/90aee43e060104e974f623924c3dfc0a4359ceb5
    
    Reported by GCC 9.x on Arch Linux.

Summary of changes:
 bin/cpdup/cpdup.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/60374ee737a54737c84ce87a466edbf6457dbbda


-- 
DragonFly BSD source repository



More information about the Commits mailing list