]> diplodocus.org Git - nmh/blobdiff - uip/mhshow.c
prevent spurious errors when requesting specific message parts
[nmh] / uip / mhshow.c
index 96b99b794787de5e379cb333826cfe35bbd068dd..0227d0c2ff798045dabd92e473998c9218c79858 100644 (file)
@@ -182,7 +182,7 @@ do_cache:
                inlineonly = 1;
                continue;
            case NINLINESW:
-               inlineonly = 1;
+               inlineonly = 0;
                continue;
 
            case PARTSW:
@@ -314,7 +314,7 @@ do_cache:
      * check if message is coming from file
      */
     if (file) {
-       if (!(cts = (CT *) calloc ((size_t) 2, sizeof(*cts))))
+       if (!(cts = (CT *) mh_xcalloc ((size_t) 2, sizeof(*cts))))
            adios (NULL, "out of memory");
        ctp = cts;
 
@@ -358,7 +358,7 @@ do_cache:
        seq_setprev (mp);       /* set the Previous-Sequence */
        seq_setunseen (mp, 1);  /* unset the Unseen-Sequence */
 
-       if (!(cts = (CT *) calloc ((size_t) (mp->numsel + 1), sizeof(*cts))))
+       if (!(cts = (CT *) mh_xcalloc ((size_t) (mp->numsel + 1), sizeof(*cts))))
            adios (NULL, "out of memory");
        ctp = cts;