commit | d9d47c3078e0f94d1fbd445f972a08c52e50417e | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Mon Sep 30 20:14:57 2002 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Mon Sep 30 20:14:57 2002 +0000 |
tree | e1fff694cdfa35b6a5bb12a56f1b1cf273d811bb | |
parent | aa1d6ccbfb189881dd5ab80607095002460502f6 [diff] |
Patch from Konstantin Isakov <ikm@pisem.net>: 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.