]> code.delx.au - gnu-emacs/commitdiff
(Fnetwork_interface_info): Correctly terminate the
authorAndreas Schwab <schwab@suse.de>
Fri, 30 Dec 2005 11:03:41 +0000 (11:03 +0000)
committerAndreas Schwab <schwab@suse.de>
Fri, 30 Dec 2005 11:03:41 +0000 (11:03 +0000)
loop over ifflag_table.

src/ChangeLog
src/process.c

index ad9084b4b46c68c3a5e2cc3f4c81a953f8a5a388..1d3a92444e2e07547d277e759f15841912e25a29 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-30  Andreas Schwab  <schwab@suse.de>
+
+       * process.c (Fnetwork_interface_info): Correctly terminate the
+       loop over ifflag_table.
+
 2005-12-29  Richard M. Stallman  <rms@gnu.org>
 
        * lread.c (readevalloop): Test for reading a whole buffer
index 516e4639c34b6872b5083f3d4385559f32de2047..b88617a2c0fbefe33369532e603839b398b7f173 100644 (file)
@@ -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)
            {