From ec8f308851f10b4941c01804357cea38f535b083 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 5 May 2015 14:49:23 +0200 Subject: [PATCH] iscsi-scstd: Move two local variables to suppress a Coverity complaint Signed-off-by: Bart Van Assche --- iscsi-scst/usr/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iscsi-scst/usr/config.c b/iscsi-scst/usr/config.c index c1ac14ab2..7d0ec9b00 100644 --- a/iscsi-scst/usr/config.c +++ b/iscsi-scst/usr/config.c @@ -654,7 +654,6 @@ static int address_match(struct sockaddr *sa1, struct sockaddr *sa2) static int __initiator_match(int fd, char *str) { struct sockaddr_storage from; - struct addrinfo hints, *res; socklen_t len; char *p, *q; int err = 0; @@ -664,6 +663,8 @@ static int __initiator_match(int fd, char *str) return 0; while ((p = strsep(&str, ","))) { + struct addrinfo hints, *res; + while (isblank(*p)) p++;