diff liboctave/oct-rl-hist.c @ 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 a1deab9a6e71
children fd0a3ac60b0e
line wrap: on
line diff
--- a/liboctave/oct-rl-hist.c
+++ b/liboctave/oct-rl-hist.c
@@ -79,7 +79,7 @@
   int r;
 
   using_history ();
-  while (temp = previous_history ())
+  while ((temp = previous_history ()))
     {
       if (! strcmp (temp->line, line))
         {