HAMMER UTILITY - Fix buildworld issue w/ last commit
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 19 Aug 2010 15:02:10 +0000 (08:02 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 19 Aug 2010 15:02:10 +0000 (08:02 -0700)
* Cockpit trouble.

Reported-by: swildner
sbin/hammer/blockmap.c

index 82ad0b5..66cf696 100644 (file)
@@ -56,9 +56,9 @@ blockmap_lookup(hammer_off_t zone_offset,
        int error = 0;
 
        if (save_layer1)
-               *save_layer1 = NULL;
+               bzero(save_layer1, sizeof(*save_layer1));
        if (save_layer2)
-               *save_layer2 = NULL;
+               bzero(save_layer2, sizeof(*save_layer2));
 
        zone = HAMMER_ZONE_DECODE(zone_offset);