CVS update: samba/source/tdb

Andrew Bartlett abartlet at pcug.org.au
Wed Jan 23 13:13:17 EST 2002


Jeremy Allison wrote:
> 
> Date:   Tue Jan 22 18:02:24 2002
> Author: jra
> 
> Update of /data/cvs/samba/source/tdb
> In directory va:/tmp/cvs-serv4022/tdb
> 
> Modified Files:
>       Tag: SAMBA_2_2
>         tdb.c
> Log Message:
> Insure fixes.
> Jeremy.

May I ask what this actually does?  Why do we need to initilialise to
NULL if the for loop does the same just below?

@@ -1728,7 +1728,7 @@
 /* reopen all tdb's */
 int tdb_reopen_all(void)
 {
-       TDB_CONTEXT *tdb;
+       TDB_CONTEXT *tdb = NULL;
 
        for (tdb=tdbs; tdb; tdb = tdb->next) {
                if (tdb_reopen(tdb) != 0) return -1;

Andrew Bartlett

-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net




More information about the samba-cvs mailing list