X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/cfabb1cb554e19976ed4ecd60c3d7eb9de24a43f..043f872725a79617ec651d16d940c647ea184afc:/lincan/src/setup.c diff --git a/lincan/src/setup.c b/lincan/src/setup.c index 75ca0ef..6a59e2f 100644 --- a/lincan/src/setup.c +++ b/lincan/src/setup.c @@ -443,6 +443,7 @@ int init_chip_struct(struct candevice_t *candev, int chipnr, int irq, long baudr chip->chipspecops=can_checked_malloc(sizeof(struct chipspecops_t)); if (chip->chipspecops==NULL) return -ENOMEM; + memset(chip->chipspecops,0,sizeof(struct chipspecops_t)); chip->chip_idx=chipnr; chip->hostdevice=candev;