diff options
author | Jarno Mäkipää <jmakip87@gmail.com> | 2019-10-19 09:47:10 +0300 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-10-21 16:58:01 -0500 |
commit | 944d818cd97cc5e5d5f710a595405faf075da9d3 (patch) | |
tree | 94e8e57782603ec3e8267dccfba530916882f4ec /main.c | |
parent | 4e0d246ec98f2576d52eb5fd70cd6e86d542e2e4 (diff) | |
download | toybox-944d818cd97cc5e5d5f710a595405faf075da9d3.tar.gz |
lib: getdirname fix seqfault on null ptr
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 "." .
Diffstat (limited to 'main.c')
0 files changed, 0 insertions, 0 deletions