cvs commit: src/usr.bin/rev

Liam J. Foy liamfoy at gmail.com
Mon Dec 13 13:12:13 PST 2004


On Mon, 13 Dec 2004 22:05:52 +0100, Devon H. O'Dell
<dodell at xxxxxxxxxxxxxxx> wrote:
> Matthew Dillon wrote:
> 
> 
> >                                       -Matt
> >                                       Matthew Dillon
> >                                       <dillon at xxxxxxxxxxxxx>
> >
> >
> 
> That's deep, man :)
> 
> --Devon
> 

Hehe. Sorry for the late reply everyone. I have been busy with bits
and bobs. Sorry everyone about the mistake I made. I think
- Hide quoted text -

Index: rev.c
===================================================================
RCS file: /home/dcvs/src/usr.bin/rev/rev.c,v
retrieving revision 1.5
diff -u -r1.5 rev.c
--- rev.c       13 Dec 2004 17:43:57 -0000      1.5
+++ rev.c       13 Dec 2004 18:53:33 -0000
@@ -90,7 +90,9 @@
                       clearerr(fp);
                       rval = 1;
               }
-               ++argv;
+               if (argv != NULL)
+                       ++argv;
+
               fclose(fp);
       } while (*argv);
       exit(rval);

will fix it correct? thanks to tomokazu for noticing it.

Cheers,

-- 
Liam J. Foy
http://www.dragonflybsd.org
I mourn for those who never knew you...





More information about the Commits mailing list