]> granicus.if.org Git - nethack/commitdiff
Added initialization of cc in do_look() to quite compiler warnings.
authorBart House <bart@barthouse.com>
Tue, 20 Nov 2018 18:29:05 +0000 (10:29 -0800)
committerBart House <bart@barthouse.com>
Tue, 20 Nov 2018 18:29:05 +0000 (10:29 -0800)
src/pager.c

index d9bdb4f631cc6f5c115f475a94d66051c569bdff..f8146615d41c045ee1eb02fde527454297ceafba 100644 (file)
@@ -1066,6 +1066,9 @@ coord *click_cc;
     boolean save_verbose; /* saved value of flags.verbose */
     boolean from_screen;  /* question from the screen */
 
+    cc.x = 0;
+    cc.y = 0;
+
     if (!clicklook) {
         if (quick) {
             from_screen = TRUE; /* yes, we want to use the cursor */