ecore-wl2: Remove erroneous check for wayland display

NB: No real major changes, just removal of an extra 'if' block. If
getenv of wayland display fails, we hard-code the default wayland
display name so subsequent check for 'if (n)' is erroneous

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
Chris Michael 2016-05-16 06:53:27 -04:00
parent ca55a920d9
commit f7796faa59
1 changed files with 5 additions and 10 deletions

View File

@ -636,18 +636,13 @@ ecore_wl2_display_connect(const char *name)
{
/* client wants to connect to default display */
n = getenv("WAYLAND_DISPLAY");
if (!n) n = "wayland-0";
if (!n)
n = "wayland-0";
/* we have a default wayland display */
if (n)
{
/* we have a default wayland display */
/* check hash of cached client displays for this name */
ewd = eina_hash_find(_client_displays, n);
if (ewd) goto found;
}
/* check hash of cached client displays for this name */
ewd = eina_hash_find(_client_displays, n);
if (ewd) goto found;
}
else
{