[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gameoftrees
Subject:    Re: Got relies on non-POSIX basename(3), dirname(3)
From:       Christian Weisgerber <naddy () mips ! inka ! de>
Date:       2020-09-19 20:35:09
Message-ID: 20200919203509.GA23736 () lorvorc ! mips ! inka ! de
[Download RAW message or body]

Christian Weisgerber:

> I don't know the purpose of got_path_{base,dir}name(), but since
> they're basically strdup(fooname(path)) we can switch that to
> fooname(strdup(path)) without semantic change.

Oops, no, that breaks free()'ing the returned string.

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic