Commit fa7434d4 authored by 's avatar
Browse files

Fixed uninitialized structure member dag_instance_t->gpp_base.


git-svn-id: file:///home/svn/mapi/trunk@1314 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 59832854
......@@ -548,6 +548,7 @@ mapidrv_create_flow (int devid, int fd, char **devtype)
gpp_base = 0;
else
gpp_base = DAG_REG_ADDR(*result);
if (gpp_base) {
/* memory mapped area */
dagiom = dag_iom(i->dagfd);
......@@ -556,7 +557,10 @@ mapidrv_create_flow (int devid, int fd, char **devtype)
slen = gpp->snaplen;
i->gpp_base = (u_int8_t*) gpp;
}
} else {
i->gpp_base = NULL;
}
i->hwinfo.cap_length=slen;
if (i->hwinfo.cap_length==0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment