]> arthur.barton.de Git - netatalk.git/commitdiff
Fixed a problem with looking up rootinfo. You can't do sizeof on a pointer
authorjmarcus <jmarcus>
Wed, 19 Sep 2001 17:44:39 +0000 (17:44 +0000)
committerjmarcus <jmarcus>
Wed, 19 Sep 2001 17:44:39 +0000 (17:44 +0000)
address!

libatalk/cnid/cnid_add.c

index 09d9e33e378921ffffb4445105dcf93423cb310c..47534d5da6bcbf84bb945a385199c12e41985b35 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: cnid_add.c,v 1.8 2001-09-05 21:53:29 jmarcus Exp $
+ * $Id: cnid_add.c,v 1.9 2001-09-19 17:44:39 jmarcus Exp $
  *
  * Copyright (c) 1999. Adrian Sun (asun@zoology.washington.edu)
  * All Rights Reserved. See COPYRIGHT.
@@ -170,8 +170,8 @@ retry:    if ((rc = txn_abort(tid)) != 0)
     goto cleanup_err;
   }
 
-  memset(&rootinfo_key, 0, sizeof(&rootinfo_key));
-  memset(&rootinfo_data, 0, sizeof(&rootinfo_data));
+  memset(&rootinfo_key, 0, sizeof(rootinfo_key));
+  memset(&rootinfo_data, 0, sizeof(rootinfo_data));
 
   /* just set hint, and the key will change. */
   rootinfo_key.data = ROOTINFO_KEY;