shithub: orca

Download patch

ref: e2e4b26f9005db37c4cf12e3c596e11b9331ce86
parent: 13d2c75f0620874bfd903ecb08d09ff62b1b1208
author: cancel <cancel@cancel.fm>
date: Sun Jan 5 00:18:31 EST 2020

Cleanup

--- a/term_util.c
+++ b/term_util.c
@@ -103,8 +103,7 @@
     assert(qnav_stack.blocks[i] != qb);
   }
 #endif
-  int left;
-  int top = 0;
+  int top = 0, left = 0;
   int totalheight = height + 2, totalwidth = width + 3;
   if (qnav_stack.count > 0) {
     WINDOW* w = qnav_stack.blocks[qnav_stack.count - 1]->outer_window;
@@ -129,8 +128,6 @@
         left = 0;
       }
     }
-  } else {
-    left = 0;
   }
   qnav_stack.blocks[qnav_stack.count] = qb;
   ++qnav_stack.count;