Coverity CID 2364: cur is known not to be NULL.

This commit is contained in:
christos 2006-03-21 23:55:56 +00:00
parent f12fd11960
commit 432fdd32e0

View File

@ -1,4 +1,4 @@
/* $NetBSD: getaddrinfo.c,v 1.79 2006/03/21 23:55:02 christos Exp $ */
/* $NetBSD: getaddrinfo.c,v 1.80 2006/03/21 23:55:56 christos Exp $ */
/* $KAME: getaddrinfo.c,v 1.29 2000/08/31 17:26:57 itojun Exp $ */
/*
@ -79,7 +79,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: getaddrinfo.c,v 1.79 2006/03/21 23:55:02 christos Exp $");
__RCSID("$NetBSD: getaddrinfo.c,v 1.80 2006/03/21 23:55:56 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@ -1571,7 +1571,7 @@ nextline:
res0 = NULL;
if (res0) {
cur->ai_next = res0;
while (cur && cur->ai_next)
while (cur->ai_next)
cur = cur->ai_next;
}