fs_path: exit quickly in `dirname_r` failure
When we encounter a situation where we need to exit, simply `return -1` instead of trying to set `len = -1` and then jumping to the exit handler, which would erroneously do work based on the `len` value.
Showing
Please
register
or
sign in
to comment