]> andersk Git - moira.git/blobdiff - gen/mailhub.pc
cant_fix takes an argument
[moira.git] / gen / mailhub.pc
index 83651a879e06a05760c17e28dd4a8dc247922846..f12de554f4334600224f14de84637ee8e4237b3a 100644 (file)
@@ -601,7 +601,7 @@ register char *string;
     lwid = 3;
 
     while (1) {
-       while (*string && *string == ' ') string++;
+       while (*string == ' ') string++;
        c = (char *)strchr(string, ' ');
        if (c == 0) {
            wwid = strlen(string);
@@ -702,7 +702,6 @@ int size;
     h->size = size;
     h->data = (struct bucket **) perm_malloc(size * sizeof(char *));
     if (h->data == (struct bucket **) NULL) {
-       free(h);
        return((struct hash *) NULL);
     }
     memset(h->data, 0, size * sizeof(char *));
@@ -825,19 +824,3 @@ char *hint;
        }
     }
 }
-
-
-/* Deallocate all of the memory associated with a table */
-
-hash_destroy(h)
-struct hash *h;
-{
-    register struct bucket *b, **p, *b1;
-
-    for (p = &(h->data[h->size - 1]); p >= h->data; p--) {
-       for (b = *p; b; b = b1) {
-           b1 = b->next;
-           free(b);
-       }
-    }
-}
This page took 0.077496 seconds and 4 git commands to generate.