X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Frmf.c;h=00104cfd233440834a11714ea207b875d04d4b53;hp=7d81a39b0dabcb5052073106c3e94e301130803c;hb=682962d94b21e120c78a52a8bdcb6aa994330a14;hpb=cff0e16925e7edbd25b8b9d6d4fbdf03e0e60c01 diff --git a/uip/rmf.c b/uip/rmf.c index 7d81a39..00104cf 100644 --- a/uip/rmf.c +++ b/uip/rmf.c @@ -111,11 +111,11 @@ main(int argc, char **argv) } if (rmf(folder) == OK) { - char *cfolder = context_find(pfolder); + char *cfolder = context_find(curfolder); if (cfolder && strcmp(cfolder, newfolder)) { printf("[+%s now current]\n", newfolder); /* update current folder */ - context_replace(pfolder, newfolder); + context_replace(curfolder, newfolder); } } context_save(); /* save the context file */