Fix typo bug

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
Jianhui Zhao
2020-02-10 21:51:09 +08:00
parent 3986ad664f
commit 566440bdc7
+1 -2
View File
@@ -70,8 +70,7 @@ struct rtty_ssl_ctx {
int rtty_ssl_init(struct rtty_ssl_ctx **ctx, int sock, const char *host)
{
struct rtty_ssl_ctx *c = calloc(1, sizeof(struct rtty_ssl_ctx));
if (!ctx) {
if (!c) {
log_err("calloc failed: %s\n", strerror(errno));
return -1;
}