[totem/gnome-3-8] backend: Fix compile-time error



commit 4c4ec86a9b61fcb092debbeb9099bdea45cd71b9
Author: Bastien Nocera <hadess hadess net>
Date:   Wed May 8 14:03:03 2013 +0200

    backend: Fix compile-time error
    
    Make sure that monitor is initialised before use.

 src/backend/bacon-video-widget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index 61ce3aa..335c417 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -500,7 +500,7 @@ get_media_size (BaconVideoWidget *bvw, gint *width, gint *height)
       if (gtk_widget_get_realized (GTK_WIDGET (bvw))) {
        GdkScreen *screen;
        GdkWindow *window;
-       int monitor;
+       int monitor = 0;
 
        screen = gtk_widget_get_screen (GTK_WIDGET (bvw));
        window = gtk_widget_get_window (GTK_WIDGET (bvw));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]