mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-21 14:00:51 +03:00
Fixed formatting in agent.c
Quiet linter around a couple if blocks and pointer.
This commit is contained in:
@@ -837,7 +837,7 @@ libssh2_agent_set_identity_path(LIBSSH2_AGENT *agent, const char *path)
|
|||||||
agent->identity_agent_path = NULL;
|
agent->identity_agent_path = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (path != NULL) {
|
if(path) {
|
||||||
size_t path_len = strlen(path);
|
size_t path_len = strlen(path);
|
||||||
if(path_len < SIZE_MAX - 1) {
|
if(path_len < SIZE_MAX - 1) {
|
||||||
char *path_buf = LIBSSH2_ALLOC(agent->session, path_len + 1);
|
char *path_buf = LIBSSH2_ALLOC(agent->session, path_len + 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user