summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Popelka <jpopelka@redhat.com>2011-06-08 18:36:16 +0200
committerJiri Popelka <jpopelka@redhat.com>2011-06-08 18:36:16 +0200
commit4476a3d338c3689137735345f26968a493af3f24 (patch)
treecb035bac67e06620aea93297c06996a3a224b164
parent690aa73b12f0e7de5af0bdbc1f8a053cf6f80b29 (diff)
downloadlibnet-4476a3d338c3689137735345f26968a493af3f24.tar.gz
Coverity: FORWARD_NULL
libnet_cq.c:177: var_compare_op: Comparing "l" to null implies that "l" might be null. libnet_cq.c:179: var_deref_model: Passing null variable "l->err_buf" to function "snprintf", which dereferences it.
-rw-r--r--libnet/src/libnet_cq.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libnet/src/libnet_cq.c b/libnet/src/libnet_cq.c
index c8e86ef..d64a22f 100644
--- a/libnet/src/libnet_cq.c
+++ b/libnet/src/libnet_cq.c
@@ -176,8 +176,6 @@ libnet_cq_remove(libnet_t *l)
if (l == NULL)
{
- snprintf(l->err_buf, LIBNET_ERRBUF_SIZE,
- "%s(): can't remove empty libnet context\n", __func__);
return(NULL);
}