changeset 11490:0a4dfc867e60

avoid GCC warning for oct-rl-hist.c
author John W. Eaton <jwe@octave.org>
date Wed, 12 Jan 2011 15:09:05 -0500
parents 978802964923
children 5e8ba5b7aa4e
files liboctave/ChangeLog liboctave/oct-rl-hist.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/ChangeLog	Wed Jan 12 15:08:36 2011 -0500
+++ b/liboctave/ChangeLog	Wed Jan 12 15:09:05 2011 -0500
@@ -1,3 +1,7 @@
+2011-01-12  John W. Eaton  <jwe@octave.org>
+
+	* oct-rl-hist.c (hc_erasedups): Avoid GCC warning.
+
 2011-01-12  Jordi GutiƩrrez Hermoso  <jordigh@gmail.com>
 
 	* oct-rl-hist.h: Replace macros with an enum
--- a/liboctave/oct-rl-hist.c	Wed Jan 12 15:08:36 2011 -0500
+++ b/liboctave/oct-rl-hist.c	Wed Jan 12 15:09:05 2011 -0500
@@ -79,7 +79,7 @@
   int r;
 
   using_history ();
-  while (temp = previous_history ())
+  while ((temp = previous_history ()))
     {
       if (! strcmp (temp->line, line))
         {