Fix namespace pollution.

This commit is contained in:
Simon Josefsson
2010-03-19 09:14:21 +01:00
parent 9ea5b0625e
commit d00283927f
4 changed files with 18 additions and 14 deletions

View File

@@ -457,8 +457,7 @@ libssh2_session_init_ex(LIBSSH2_ALLOC_FUNC((*my_alloc)),
session->api_block_mode = 1; /* blocking API by default */
_libssh2_debug(session, LIBSSH2_TRACE_TRANS,
"New session resource allocated");
if (!libssh2_initialized)
libssh2_init(0);
_libssh2_init_if_needed ();
}
return session;
}