Browse Source

convert to zalloc

tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
636bd2cd0a
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/drivers/bus/isapnp.c

+ 1
- 2
src/drivers/bus/isapnp.c View File

653
 
653
 
654
 			/* Allocate struct isapnp_device */
654
 			/* Allocate struct isapnp_device */
655
 			if ( ! isapnp )
655
 			if ( ! isapnp )
656
-				isapnp = malloc ( sizeof ( *isapnp ) );
656
+				isapnp = zalloc ( sizeof ( *isapnp ) );
657
 			if ( ! isapnp ) {
657
 			if ( ! isapnp ) {
658
 				rc = -ENOMEM;
658
 				rc = -ENOMEM;
659
 				goto err;
659
 				goto err;
660
 			}
660
 			}
661
-			memset ( isapnp, 0, sizeof ( *isapnp ) );
662
 			isapnp->csn = csn;
661
 			isapnp->csn = csn;
663
 			isapnp->logdev = logdev;
662
 			isapnp->logdev = logdev;
664
 
663
 

Loading…
Cancel
Save