Commit 5e3501df authored by Mike Hibler's avatar Mike Hibler
Browse files

Remove a mis-guided assertion.

parent a43015c5
......@@ -451,7 +451,6 @@ resolvepath(char *path, char *dir, int create)
if ((pathcopy = strdup(path)) == NULL)
goto done;
rpathlen = strlen(rpath);
assert(rpathlen <= pathlen);
if (rpathlen > 1 && strncmp(pathcopy, rpath, rpathlen) == 0 &&
(pathcopy[rpathlen] == '\0' || pathcopy[rpathlen] == '/')) {
/* same string, start at last slash in path */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment