fix various incidents reported by CLANG Static analyzer:
[citadel.git] / webcit / marchlist.c
index 63cd84cc4fe098ef62ab191e6d2235371768aa90..fa0b8f55302f165bc06d4efdfd8e6b2511b74111 100644 (file)
@@ -58,8 +58,6 @@ void remove_march(const StrBuf *aaa)
 char *pop_march(int desired_floor)
 {
        static char TheRoom[128];
-       int TheFloor = 0;
-       int TheOrder = 32767;
        int TheWeight = 0;
        int weight;
        struct march *mptr = NULL;
@@ -81,8 +79,6 @@ char *pop_march(int desired_floor)
                if (weight > TheWeight) {
                        TheWeight = weight;
                        strcpy(TheRoom, mptr->march_name);
-                       TheFloor = mptr->march_floor;
-                       TheOrder = mptr->march_order;
                }
        }
        return (TheRoom);