From 82a800588d6b61c242204866f09a606c27e205a4 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 30 Dec 2005 11:03:41 +0000 Subject: [PATCH] (Fnetwork_interface_info): Correctly terminate the loop over ifflag_table. --- src/ChangeLog | 5 +++++ src/process.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index ad9084b4b46..1d3a92444e2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-12-30 Andreas Schwab + + * process.c (Fnetwork_interface_info): Correctly terminate the + loop over ifflag_table. + 2005-12-29 Richard M. Stallman * lread.c (readevalloop): Test for reading a whole buffer diff --git a/src/process.c b/src/process.c index 516e4639c34..b88617a2c0f 100644 --- a/src/process.c +++ b/src/process.c @@ -3558,7 +3558,7 @@ FLAGS is the current flags of the interface. */) int fnum; any++; - for (fp = ifflag_table; flags != 0 && fp; fp++) + for (fp = ifflag_table; flags != 0 && fp->flag_sym; fp++) { if (flags & fp->flag_bit) { -- 2.39.5