[elm_theme] Added NULL check to elm_theme_get().
authorDaniel Juyung Seo <juyung.seo@samsung.com>
Wed, 8 Sep 2010 03:05:04 +0000 (12:05 +0900)
committerDaniel Juyung Seo <juyung.seo@samsung.com>
Wed, 8 Sep 2010 03:05:04 +0000 (12:05 +0900)
src/lib/elm_theme.c

index 70ed1a3..308e64f 100644 (file)
@@ -434,6 +434,7 @@ elm_theme_set(Elm_Theme *th, const char *theme)
 EAPI const char *
 elm_theme_get(Elm_Theme *th)
 {
+   if (!th) th = &(theme_default);
    if (!th->theme)
      {
         Eina_List *l;