diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-05-19 19:12:10 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-05-19 19:12:10 -0700 |
commit | b779c6f7d73e5f70b2d886ed75e6e65217ad1e85 (patch) | |
tree | 480864b08c5242cf7c9de7d47c56f66e240948a5 /sys/libn/os.c | |
parent | 13772a8a2120017981d280bfe120fdbb74f27860 (diff) |
checkin: found a large bug associated to ident resetting the buffer vector
Diffstat (limited to 'sys/libn/os.c')
-rw-r--r-- | sys/libn/os.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/libn/os.c b/sys/libn/os.c index c9cc0ae..75688e9 100644 --- a/sys/libn/os.c +++ b/sys/libn/os.c @@ -26,5 +26,5 @@ os·basename(byte *path) byte *sep; sep = utf8·findrrune(path, os·sep()); - return sep+1; + return (sep == nil) ? path : sep+1; } |