]> arthur.barton.de Git - netatalk.git/commitdiff
memory allocation for address
authorrufustfirefly <rufustfirefly>
Wed, 9 Aug 2000 14:52:37 +0000 (14:52 +0000)
committerrufustfirefly <rufustfirefly>
Wed, 9 Aug 2000 14:52:37 +0000 (14:52 +0000)
contrib/timelord/timelord.c

index f17f943b8ffa3e5bf6ded02fe822b731d5007045..ab93e92111210d8735b1cd1b81a74c4b4858de5f 100644 (file)
@@ -148,6 +148,9 @@ main( ac, av )
     openlog( p, LOG_NDELAY|LOG_PID, LOG_DAEMON );
 #endif ultrix
 
+    /* allocate memory */
+    memset (&sat.sat_addr, 0, sizeof (sat.sat_addr));
+
     if (( atp = atp_open( ATADDR_ANYPORT, &sat.sat_addr )) == NULL ) {
        syslog( LOG_ERR, "main: atp_open: %m" );
        exit( 1 );