mirror of
https://github.com/jarun/nnn.git
synced 2025-04-15 09:56:32 +00:00
Merge pull request #1973 from peter15914/fix-abspath-retval
Check NULL from abspath()
This commit is contained in:
commit
5522292014
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue