]> git.sur5r.net Git - openldap/commitdiff
fix uninitialized value use
authorPierangelo Masarati <ando@openldap.org>
Wed, 20 Jul 2005 14:19:52 +0000 (14:19 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 20 Jul 2005 14:19:52 +0000 (14:19 +0000)
servers/slapd/oidm.c

index 32b4a47e74f017347426bc38081075c62e4e4e05..3c93c3ef41d8991c723173de3487272d958e13c5 100644 (file)
@@ -119,9 +119,9 @@ usage:      fprintf( stderr, "\tObjectIdentifier <name> <oid>\n");
                return 1;
        }
 
-       om = (OidMacro *) SLAP_MALLOC( sizeof(OidMacro) );
+       om = (OidMacro *) SLAP_CALLOC( sizeof(OidMacro), 1 );
        if( om == NULL ) {
-               Debug( LDAP_DEBUG_ANY, "parse_oidm: SLAP_MALLOC failed", 0, 0, 0 );
+               Debug( LDAP_DEBUG_ANY, "parse_oidm: SLAP_CALLOC failed", 0, 0, 0 );
                return 1;
        }