X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhpath.c;h=df4e14013c6588f5022696c1e0660f9260d7f0c8;hp=c400fa6dfef22f1c2eab493480c5f20f33058f59;hb=93fa896ceb5fbebe2f1f6e6e36419a13f8ffd99f;hpb=cf1205b5cbea2f0cd6ea710ec16c637df85b647c diff --git a/uip/mhpath.c b/uip/mhpath.c index c400fa6..df4e140 100644 --- a/uip/mhpath.c +++ b/uip/mhpath.c @@ -20,6 +20,8 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; + int main(int argc, char **argv) { @@ -64,7 +66,7 @@ main(int argc, char **argv) if (folder) { adios(EX_USAGE, NULL, "only one folder at a time!"); } else { - folder = getcpy(expandfol(cp)); + folder = mh_xstrdup(expandfol(cp)); } } else { app_msgarg(&msgs, cp); @@ -105,7 +107,7 @@ main(int argc, char **argv) } /* ** TODO: As folder_realloc() checks itself if the realloc - ** really is necesary, why don't we then: + ** really is necessary, why don't we then: ** if (!(mp = folder_realloc (mp, 1, mp->hghmsg+1))) ** adios (NULL, "unable to allocate folder storage"); ** ? This at least appears most clear to me. -- meillo @@ -121,8 +123,6 @@ main(int argc, char **argv) } } - seq_setprev(mp); /* set the previous-sequence */ - /* print the path of all selected messages */ for (i = mp->lowsel; i <= mp->hghsel; i++) if (is_selected(mp, i))