Hi,

Here this is a tiny change, hope it finds its way.

Kind regards.
From 321074b31d9561ea1af51c65c9a912f8a08f555c Mon Sep 17 00:00:00 2001
From: David Carlier <dcarl...@afilias.info>
Date: Fri, 8 Apr 2016 10:37:02 +0100
Subject: [PATCH 3/4] CLEANUP: sample: initialize the pointer before
 parse_binary call.

parse_binary line 2025 checks the nullity of binstr parameter.
Other calls of parse_binary properly zeroify this parameter.
---
 src/sample.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sample.c b/src/sample.c
index 8a2fa4f..4f89bab 100644
--- a/src/sample.c
+++ b/src/sample.c
@@ -2524,7 +2524,7 @@ static int smp_fetch_const_ipv6(const struct arg *args, struct sample *smp, cons
 
 static int smp_check_const_bin(struct arg *args, char **err)
 {
-	char *binstr;
+	char *binstr = NULL;
 	int binstrlen;
 
 	if (!parse_binary(args[0].data.str.str, &binstr, &binstrlen, err))
-- 
2.5.0

Reply via email to