Far Manager for Linux

Copy-Paste

V523 The ‘then’ statement is equivalent to the ‘else’ statement. Queque.cpp 358

void FTP::AddToQueque(FAR_FIND_DATA* FileName, 
                      LPCSTR Path, 
                      BOOL Download)
{
  ....
  char *m;
  ....
  if(Download)
    m = strrchr(FileName->cFileName, '/'); 
  else
    m = strrchr(FileName->cFileName, '/'); 
  ....
}

The second condition in this example must have been also written with the help of “Copy-Paste”: whatever the value of Download (TRUE, FALSE), the ‘m’ pointer will be assigned the position of the last occurrence of the ‘/‘ character.

Please click here to see more bugs from this project.

2 thoughts on “Far Manager for Linux

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s