iscsi-scstd: Move two local variables to suppress a Coverity complaint

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
This commit is contained in:
Bart Van Assche
2015-05-06 14:57:14 +02:00
parent 40c4078e97
commit ec8f308851
+2 -1
View File
@@ -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++;