Ugh! Tested the value of the symlink() symbol instead of the symLink

parameter. Spotted by gcc4. :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20344 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-03-07 06:12:57 +00:00
parent 7b4b242d27
commit 4b997aa15a

View File

@ -108,7 +108,7 @@ Directory::CreateFile(const char *name, File **file)
status_t
Directory::CreateSymLink(const char *name, const char *path, SymLink **symLink)
{
status_t error = (name && symlink ? B_OK : B_BAD_VALUE);
status_t error = (name && symLink ? B_OK : B_BAD_VALUE);
if (error == B_OK) {
// create symlink
if (SymLink *node = new(nothrow) SymLink(GetVolume())) {