nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 5522292014a58fa6297399516730e795f7e2e0f0
parent ef6e00c85cfc24f59382bce460d98e946820b3cf
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Thu, 19 Dec 2024 22:18:04 +0530

Merge pull request #1973 from peter15914/fix-abspath-retval

Check NULL from abspath()
Diffstat:
Msrc/nnn.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -8759,6 +8759,11 @@ int main(int argc, char *argv[]) close(fd); selpath = abspath(optarg, NULL, NULL); + if (!selpath) { + xerror(); + return EXIT_FAILURE; + } + unlink(selpath); } break;