[Midnightbsd-cvs] src: paste.c: fix bug
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Mar 25 18:13:59 EDT 2009
Log Message:
-----------
fix bug
Modified Files:
--------------
src/usr.bin/paste:
paste.c (r1.1.1.1 -> r1.2)
-------------- next part --------------
Index: paste.c
===================================================================
RCS file: /home/cvs/src/usr.bin/paste/paste.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -L usr.bin/paste/paste.c -L usr.bin/paste/paste.c -u -r1.1.1.1 -r1.2
--- usr.bin/paste/paste.c
+++ usr.bin/paste/paste.c
@@ -47,7 +47,7 @@
#endif
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/usr.bin/paste/paste.c,v 1.14 2004/06/25 01:48:43 tjr Exp $");
+__FBSDID("$FreeBSD: src/usr.bin/paste/paste.c,v 1.15 2006/09/12 05:08:36 charnier Exp $");
#include <sys/types.h>
@@ -140,7 +140,7 @@
LIST *head, *tmp;
int opencnt, output;
- for (cnt = 0, head = NULL; (p = *argv); ++argv, ++cnt) {
+ for (cnt = 0, head = tmp = NULL; (p = *argv); ++argv, ++cnt) {
if ((lp = malloc(sizeof(LIST))) == NULL)
err(1, NULL);
if (p[0] == '-' && !p[1])
More information about the Midnightbsd-cvs
mailing list