Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The address of 'FtpServer::cwdName' will never be NULL #71

Closed
fl4p opened this issue Oct 26, 2024 · 1 comment
Closed

The address of 'FtpServer::cwdName' will never be NULL #71

fl4p opened this issue Oct 26, 2024 · 1 comment

Comments

@fl4p
Copy link

fl4p commented Oct 26, 2024

cwdName is a declared array:

char     cwdName[ FTP_CWD_SIZE ];   // name of current directory

So the check

 if( cwdName == 0 ) 

will never result true.

Potential fix:

if( strlen( cwdName ) == 0 )
xreef added a commit that referenced this issue Jan 11, 2025
@xreef
Copy link
Owner

xreef commented Jan 11, 2025

thanks a lot.
Bye Renzo

@xreef xreef closed this as completed Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@xreef @fl4p and others