elm win: Place ifdef to a proper place. Initialize variable.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Wed, 30 May 2012 04:57:31 +0000 (04:57 +0000)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Wed, 30 May 2012 04:57:31 +0000 (04:57 +0000)
SVN revision: 71529

src/lib/elm_win.c

index d596dcd..f2f323f 100644 (file)
@@ -1255,10 +1255,10 @@ _elm_win_delete_request(Ecore_Evas *ee)
 static Ecore_X_Window
 _elm_ee_xwin_get(const Ecore_Evas *ee)
 {
-   Ecore_X_Window xwin;
+#ifdef HAVE_ELEMENTARY_X
+   Ecore_X_Window xwin = 0;
 
    if (!ee) return 0;
-#ifdef HAVE_ELEMENTARY_X
 #define ENGINE_COMPARE(name) (!strcmp(_elm_preferred_engine, name))
    if (ENGINE_COMPARE(ELM_SOFTWARE_X11))
      {