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

Semantic fix on malloc

This commit is contained in:
milo
2011-04-14 13:45:48 +02:00
parent 42315772b2
commit a0a3ceeaa0

View File

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