]> git.wh0rd.org Git - nano.git/commitdiff
Oops! You can't swap those two conditions.
authorBenno Schulenberg <bensberg@justemail.net>
Thu, 29 Oct 2015 09:04:30 +0000 (09:04 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Thu, 29 Oct 2015 09:04:30 +0000 (09:04 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5377 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/text.c

index e704a36c1d03aab6d330cf2d5caa413a244fbcd4..c207b4676610c2c1aa876265f6cd22c8ce8bf4c2 100644 (file)
@@ -629,7 +629,7 @@ void do_redo(void)
     undo *u = openfile->undotop;
 
     /* Get the previous undo item. */
-    while (u->next != openfile->current_undo && u != NULL)
+    while (u != NULL && u->next != openfile->current_undo)
        u = u->next;
 
     if (u == NULL) {