Skip to content

Remove unnecessary checks in ftp_fopen_wrapper.c#10711

Merged
Girgias merged 1 commit into
php:masterfrom
ndossche:cleanup-ftp
Feb 27, 2023
Merged

Remove unnecessary checks in ftp_fopen_wrapper.c#10711
Girgias merged 1 commit into
php:masterfrom
ndossche:cleanup-ftp

Conversation

@ndossche

Copy link
Copy Markdown
Member
  • resource is always non-NULL at this point because we check for NULL right after its creation.
  • resource->path is always set at this point because of the check right above the code where it's used. It was also confusing to see "/" being considered as a "default".

* resource is always non-NULL at this point because we check for NULL
  right after its creation.
* resource->path is always set at this point because of the check right
  above the code where it's used. It was also confusing to see "/" being
  considered as a "default".
@Girgias Girgias merged commit edacfbd into php:master Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants