X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/788c353a8bee07520ae1a1de6fb7bdcdf1f4f1c7..676aafb5cca9531170843b28fe4e3ba12c322c50:/uip/new.c diff --git a/uip/new.c b/uip/new.c index 4ff8c049..82d6db55 100644 --- a/uip/new.c +++ b/uip/new.c @@ -300,7 +300,7 @@ doit(char *cur, char *folders, char *sequences[]) struct node *first, *cur_node, *node, *last, *prev; size_t folder_len; int count, total = 0; - char *command, *sequences_s; + char *command = NULL, *sequences_s = NULL; if (cur == NULL || cur[0] == '\0') { cur = "inbox"; @@ -374,7 +374,7 @@ doit(char *cur, char *folders, char *sequences[]) total += count; printf("%-*s %6d.%c %s\n", - folder_len, node->n_name, + (int) folder_len, node->n_name, count, (strcmp(node->n_name, cur) == 0 ? '*' : ' '), node->n_field); @@ -388,7 +388,7 @@ doit(char *cur, char *folders, char *sequences[]) } if (run_mode == NEW) { - printf("%-*s %6d.\n", folder_len, " total", total); + printf("%-*s %6d.\n", (int) folder_len, " total", total); } return cur_node;