s3:vfs_catia: Use talloc_zero for simplification
authorVolker Lendecke <vl@samba.org>
Mon, 14 Sep 2009 20:28:11 +0000 (22:28 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 14 Sep 2009 20:48:45 +0000 (22:48 +0200)
source3/modules/vfs_catia.c

index d4fef4d14ef2d583a413988ab77db4d6356bcff5..279ab596fbacb3adb4e24f60988b2b1863a9782e 100644 (file)
@@ -55,8 +55,7 @@ static bool build_table(struct char_mappings **cmaps, int value)
        int i;
        int start = T_START(value);
 
-       (*cmaps) = (struct char_mappings *)
-                       TALLOC_ZERO(NULL, sizeof(struct char_mappings));
+       (*cmaps) = talloc_zero(NULL, struct char_mappings);
 
        if (!*cmaps)
                return False;