DragonFly BSD
DragonFly commits List (threaded) for 2004-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/usr.bin/rev


From: "Liam J. Foy" <liamfoy@xxxxxxxxx>
Date: Mon, 13 Dec 2004 21:11:19 +0000

On Mon, 13 Dec 2004 22:05:52 +0100, Devon H. O'Dell
<dodell@xxxxxxxxxxxxxxx> wrote:
> Matthew Dillon wrote:
> 
> 
> >                                       -Matt
> >                                       Matthew Dillon
> >                                       <dillon@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...



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]