=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/less/prompt.c,v retrieving revision 1.16 retrieving revision 1.17 diff -c -r1.16 -r1.17 *** src/usr.bin/less/prompt.c 2015/11/07 18:07:44 1.16 --- src/usr.bin/less/prompt.c 2015/11/09 16:46:43 1.17 *************** *** 216,222 **** case 'x': /* Is there a "next" file? */ if (ntags()) return (0); ! return (next_ifile(curr_ifile) != NULL_IFILE); } return (0); } --- 216,222 ---- case 'x': /* Is there a "next" file? */ if (ntags()) return (0); ! return (next_ifile(curr_ifile) != NULL); } return (0); } *************** *** 350,356 **** break; case 'x': /* Name of next file */ h = next_ifile(curr_ifile); ! if (h != NULL_IFILE) ap_str(get_filename(h)); else ap_quest(); --- 350,356 ---- break; case 'x': /* Name of next file */ h = next_ifile(curr_ifile); ! if (h != NULL) ap_str(get_filename(h)); else ap_quest();