Ecore wl2: Limit scope of variable (fix shadow warning).

This commit is contained in:
Tom Hacohen 2015-12-21 11:15:24 +00:00
parent db72b93601
commit 374b795683
1 changed files with 2 additions and 1 deletions

View File

@ -388,13 +388,14 @@ ecore_wl2_display_create(const char *name)
{ {
Ecore_Wl2_Display *ewd; Ecore_Wl2_Display *ewd;
struct wl_event_loop *loop; struct wl_event_loop *loop;
const char *n;
if (!_server_displays) if (!_server_displays)
_server_displays = eina_hash_string_superfast_new(NULL); _server_displays = eina_hash_string_superfast_new(NULL);
if (!name) if (!name)
{ {
const char *n;
/* someone wants to create a new server */ /* someone wants to create a new server */
n = getenv("WAYLAND_DISPLAY"); n = getenv("WAYLAND_DISPLAY");
if (n) if (n)