From fff2028591719777bb0c821e8576b0546963411d Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 29 Sep 2014 21:40:23 +1000 Subject: [PATCH] Avoid uninit buf --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index c4b7e349..2502de9f 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1540,7 +1540,7 @@ static int send_recv_auth(stratum_instance_t *client) { user_instance_t *user_instance = client->user_instance; ckpool_t *ckp = client->ckp; - char *buf, *json_msg; + char *buf = NULL, *json_msg; char cdfield[64]; int ret = 1; json_t *val;