Fixed a problem with free_march_list()
authorArt Cancro <ajc@citadel.org>
Thu, 9 Feb 2006 17:53:12 +0000 (17:53 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 9 Feb 2006 17:53:12 +0000 (17:53 +0000)
webcit/roomops.c

index 8fe2b827704aecfda2c2cfc3a2f8d3cd2fe0f3da..07d6db7704375debcc361f591d900b628b736d37 100644 (file)
@@ -79,7 +79,7 @@ void free_march_list(struct wcsession *wcf)
 {
        struct march *mptr;
 
-       while (wcf->march == NULL) {
+       while (wcf->march != NULL) {
                mptr = wcf->march->next;
                free(wcf->march);
                wcf->march = mptr;