mirror of
https://github.com/sheumann/hush.git
synced 2025-01-14 12:30:40 +00:00
d9d47c3078
In most cases, dirname returns the same argument it was given, so this code works nice, but there's one special case: when the name contains no dirname, it returns "." (stored statically in the body of itself), and we get a segfault in attempt to free() it. This patch fixes this problem.