]> andersk Git - moira.git/commitdiff
fix a couple of null pointer problems
authormar <mar>
Wed, 19 Jul 1989 14:37:41 +0000 (14:37 +0000)
committermar <mar>
Wed, 19 Jul 1989 14:37:41 +0000 (14:37 +0000)
dbck/phase2.qc

index ed39e7202c4b3b8cb651d3965dfc695d411dccfc..1b50b3438707499d8a63eaa1e2b1cac9d6d088a9 100644 (file)
@@ -651,7 +651,7 @@ phase2()
          sq_save_unique_data(sq1, id1);
        if (!hash_lookup(clusters, id2))
          sq_save_unique_data(sq2, id2);
-       m->clucount++;
+       if (m) m->clucount++;
 ##  }
     generic_delete(sq1, show_mcm_mach, "mcmap", "mach_id", 1);
     generic_delete(sq2, show_mcm_clu, "mcmap", "clu_id", 1);
@@ -677,7 +677,8 @@ phase2()
        strtrim(type);
        if ((l = (struct list *) hash_lookup(lists, id1)) == NULL)
          sq_save_unique_data(sq1, id1);
-       l->members++;
+       else
+         l->members++;
        if (!strcmp(type, "USER") && !hash_lookup(users, id2))
          sq_save_unique_data(sq2, id2);
        else if (!strcmp(type, "LIST") && !hash_lookup(lists, id2))
This page took 0.146413 seconds and 5 git commands to generate.