]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/setup.c
Structured comments updated.
[lincan.git] / lincan / src / setup.c
index 75ca0ef5176b7d47ad7b574b6596428c384b9a71..6a59e2ffe8c1f0e91717154fc6380d43119b28c6 100644 (file)
@@ -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;