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

Error with file: Libssh2.swift #19

Open
VisualEcho opened this issue Mar 27, 2019 · 0 comments
Open

Error with file: Libssh2.swift #19

VisualEcho opened this issue Mar 27, 2019 · 0 comments

Comments

@VisualEcho
Copy link

I have updated Xcode to 10.2 yesterday.
But when I build my program today, an error at Libssh2.swift: 333

let response = LIBSSH2_USERAUTH_KBDINT_RESPONSE(text: strdup(password), length: UInt32(strlen(password)))

reason is:
Value of optional type 'UnsafePointer?' must be unwrapped to a value of type 'UnsafePointer'

I change the code to:
let response = LIBSSH2_USERAUTH_KBDINT_RESPONSE(text: strdup(password), length: UInt32(strlen(password!)))
and solve this problem, but I don't think that is good way.

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

1 participant