Far Manager for Linux


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;
    m = strrchr(FileName->cFileName, '/'); 
    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.

3 thoughts on “Far Manager for Linux

  1. Please fix code sample: looks like you forget “else” branch.
    Also you forget last “e” in “Copy-Past” header.


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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.