1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

misc: Remove session from ssh_get_local_username().

This commit is contained in:
Andreas Schneider
2011-08-16 22:24:31 +02:00
parent 1a0fbedc2e
commit ddcb88070b
4 changed files with 20 additions and 24 deletions

View File

@@ -457,7 +457,7 @@ int ssh_options_set(ssh_session session, enum ssh_options_e type,
case SSH_OPTIONS_USER:
SAFE_FREE(session->username);
if (value == NULL) { /* set default username */
q = ssh_get_local_username(session);
q = ssh_get_local_username();
if (q == NULL) {
return -1;
}