Author: ae
Date: Wed Mar 9 14:47:05 2016
New Revision: 296566
URL: https://svnweb.freebsd.org/changeset/base/296566
Log:
Set buffer to empty string to prevent duplicated output in some cases.
PR: 193888
Modified:
head/sbin/ipfw/ipfw2.c
Modified: head/sbin/ipfw/ipfw2.c
==============================================================================
--- head/sbin/ipfw/ipfw2.c Wed Mar 9 13:45:03 2016 (r296565)
+++ head/sbin/ipfw/ipfw2.c Wed Mar 9 14:47:05 2016 (r296566)
@@ -424,6 +424,7 @@ bp_flush(struct buf_pr *b)
b->ptr = b->buf;
b->avail = b->size;
+ b->buf[0] = '\0';
}
/*
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"