mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
Semantic fix on malloc
This commit is contained in:
@@ -104,7 +104,7 @@ static int server_set_kex(ssh_session session) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
server->methods = (char **) malloc(10 * sizeof(char **));
|
server->methods = malloc(10 * sizeof(char *));
|
||||||
if (server->methods == NULL) {
|
if (server->methods == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user