[Toybox] [PATCH] lib: getdirname fix seqfault on null ptr

Jarno Mäkipää jmakip87 at gmail.com
Fri Oct 18 23:59:30 PDT 2019


In order to be used as drop in replacement for dirname()

If path is a null pointer or points to an empty string,
dirname() shall return a pointer to the string "." .
---
 lib/lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lib-getdirname-fix-seqfault-on-null-ptr.patch
Type: text/x-patch
Size: 960 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20191019/98ba61d4/attachment-0002.bin>


More information about the Toybox mailing list