Index: rfc2045/reformime.c =================================================================== --- rfc2045/reformime.c (revision 141) +++ rfc2045/reformime.c (working copy) @@ -1150,14 +1150,15 @@ if (doinfo) { - mimesection = strtok(section,","); + mimesection = section ? strtok(section, ","):NULL; do { print_info(p, mimesection); if (do_extract) extract_section(p, mimesection, extract_filename, argc-argn, argv+argn, do_extract); - mimesection = strtok(NULL,","); + if (mimesection) + mimesection = strtok(NULL,","); } while (mimesection != NULL); } else if (dodecode)