]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid compilation warning in frame.c
authorEli Zaretskii <eliz@gnu.org>
Fri, 23 Aug 2019 12:52:33 +0000 (15:52 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 23 Aug 2019 12:52:33 +0000 (15:52 +0300)
* src/frame.c (Fx_parse_geometry): Avoid compilation warning
about x and y being used without initializing them.

src/frame.c

index a0da55c0e9d03d29c76dcb982650ecf7e34b7652..8ee8e4203fc0fa9fffc35f9eefcd826ac3cc2287 100644 (file)
@@ -5327,7 +5327,7 @@ or a list (- N) meaning -N pixels relative to bottom/right corner.
 On Nextstep, this just calls `ns-parse-geometry'.  */)
   (Lisp_Object string)
 {
-  int geometry, x, y;
+  int geometry, x = 0, y = 0;
   unsigned int width, height;
   Lisp_Object result;