netutils/ftpc: Fix some crazy comparisons to determine is a file is an absolute path. Noted by Anthony Merlino.

This commit is contained in:
Gregory Nutt 2017-10-13 15:36:36 -06:00
parent fe3e7a7bad
commit 8af55bbdcc

View File

@ -216,7 +216,7 @@ static FAR char *ftpc_abspath(FAR struct ftpc_session_s *session,
/* Check for an absolute path */
else if (relpath[0] == '/' && relpath[1] == ':' && relpath[2] == '\\')
else if (relpath[0] == '/')
{
ptr = strdup(relpath);
}