2007-09-28 [colin] 3.0.1cvs45
[claws.git] / src / addrindex.c
index 6885b5644dffd58dbebe6a87c4b721a666ff5c1e..ea3aeb9583034fa501c986116bfff094e93a8913 100644 (file)
@@ -1716,12 +1716,15 @@ static gint addrindex_write_to( AddressIndex *addrIndex, const gchar *newFile )
 * return: Status code, from addrIndex->retVal.
 */
 gint addrindex_save_data( AddressIndex *addrIndex ) {
-       GList *nodeIf, *nodeDS;
-
+#ifdef USE_LDAP
+       GList *nodeIf;
+       GList *nodeDS;
+#endif
+       
        g_return_val_if_fail( addrIndex != NULL, -1 );
-       nodeIf = addrIndex->interfaceList;
 
 #ifdef USE_LDAP
+       nodeIf = addrIndex->interfaceList;
        /* save LDAP interfaces */
        while ( nodeIf ) {
                AddressInterface *iface = nodeIf->data;