Browse Source

Revert "convert to zalloc"

This reverts commit 68add6e814.
tags/v0.9.3
Michael Brown 17 years ago
parent
commit
436adb2890
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/drivers/net/3c509.c

+ 2
- 1
src/drivers/net/3c509.c View File

347
 	for ( tag = 1 ; tag <= t509_max_tag ; tag++ ) {
347
 	for ( tag = 1 ; tag <= t509_max_tag ; tag++ ) {
348
 		/* Allocate struct t509_device */
348
 		/* Allocate struct t509_device */
349
 		if ( ! t509 )
349
 		if ( ! t509 )
350
-			t509 = zalloc ( sizeof ( *t509 ) );
350
+			t509 = malloc ( sizeof ( *t509 ) );
351
 		if ( ! t509 ) {
351
 		if ( ! t509 ) {
352
 			rc = -ENOMEM;
352
 			rc = -ENOMEM;
353
 			goto err;
353
 			goto err;
354
 		}
354
 		}
355
+		memset ( t509, 0, sizeof ( *t509 ) );
355
 		t509->tag = tag;
356
 		t509->tag = tag;
356
 
357
 
357
 		/* Send the ID sequence */
358
 		/* Send the ID sequence */

Loading…
Cancel
Save