diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-04-13 14:37:24 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-04-13 14:37:24 -0400 |
commit | 77cfc38b57626e2c5a0b3549407c13acecb62d20 (patch) | |
tree | 2dd9bf9761ee6b2478ab39503995b35b72683f4e /util.c | |
parent | 69789c042460e012ec3054cc2e6ceeff25e394b9 (diff) |
improve tag generation (don't just look at files in the cwd)
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -288,6 +288,7 @@ static void path_full(char const *dir, char const *relpath, char *abspath, size_ } else if (component_len == 2 && relpath[0] == '.' && relpath[1] == '.') { // .. char *lastsep = strrchr(abspath, PATH_SEPARATOR); + assert(lastsep); if (lastsep == abspath) lastsep[1] = '\0'; else |