# HG changeset patch # User reimar # Date 1272395063 0 # Node ID 075a2c6bebb4d2258f26fd5a6f1082630619768a # Parent 3d5814888491f6a803706b23f8aa01c331e718c9 Move variable declaration into the block where it is actually used. diff -r 3d5814888491 -r 075a2c6bebb4 libvo/x11_common.c --- a/libvo/x11_common.c Tue Apr 27 17:50:50 2010 +0000 +++ b/libvo/x11_common.c Tue Apr 27 19:04:23 2010 +0000 @@ -368,9 +368,9 @@ void update_xinerama_info(void) { xinerama_x = xinerama_y = 0; #ifdef CONFIG_XINERAMA - int screen = xinerama_screen; - if (screen >= -1 && XineramaIsActive(mDisplay)) + if (xinerama_screen >= -1 && XineramaIsActive(mDisplay)) { + int screen = xinerama_screen; XineramaScreenInfo *screens; int num_screens;