common_rename(): Fixed incorrect check (array address instead of first

element, CID 4077).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40082 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2011-01-02 23:46:17 +00:00
parent e85a4793d2
commit 66e8557230
1 changed files with 1 additions and 1 deletions

View File

@ -6227,7 +6227,7 @@ common_rename(int fd, char* path, int newFD, char* newPath, bool kernel)
goto err2;
}
if (fromName[0] == '\0' || toName == '\0'
if (fromName[0] == '\0' || toName[0] == '\0'
|| !strcmp(fromName, ".") || !strcmp(fromName, "..")
|| !strcmp(toName, ".") || !strcmp(toName, "..")
|| (fromVnode == toVnode && !strcmp(fromName, toName))) {