1
0
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:
Will Cosgrove
2019-04-11 12:08:43 -07:00
committed by GitHub
parent 9ea7d3bced
commit 12343f11da

View File

@@ -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);