Patches submitted by matt:
[citadel.git] / citadel / routines2.c
index 5264df344f21425491c74dfa90c6d827521bca7f..07012ab1a6f16a306415aa744100ad12bf9525d3 100644 (file)
@@ -592,7 +592,7 @@ void list_bio(CtdlIPC *ipc)
                pprintf("%s\n", buf);
                return;
        }
-       while (strlen(resp)) {
+       while (resp && strlen(resp)) {
                extract_token(buf, resp, 0, '\n', sizeof buf);
                remove_token(resp, 0, '\n');
                if ((pos + strlen(buf) + 5) > screenwidth) {