=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/patch/inp.c,v retrieving revision 1.17 retrieving revision 1.18 diff -c -r1.17 -r1.18 *** src/usr.bin/patch/inp.c 2003/07/22 17:52:20 1.17 --- src/usr.bin/patch/inp.c 2003/07/23 07:31:21 1.18 *************** *** 1,7 **** ! /* $OpenBSD: inp.c,v 1.17 2003/07/22 17:52:20 deraadt Exp $ */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: inp.c,v 1.17 2003/07/22 17:52:20 deraadt Exp $"; #endif /* not lint */ #include --- 1,7 ---- ! /* $OpenBSD: inp.c,v 1.18 2003/07/23 07:31:21 otto Exp $ */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: inp.c,v 1.18 2003/07/23 07:31:21 otto Exp $"; #endif /* not lint */ #include *************** *** 328,334 **** { if (line < 1 || line > input_lines) { say("No such line %ld in input file, ignoring\n", line); ! return ""; } if (using_plan_a) return i_ptr[line]; --- 328,334 ---- { if (line < 1 || line > input_lines) { say("No such line %ld in input file, ignoring\n", line); ! return NULL; } if (using_plan_a) return i_ptr[line];