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>
{
/* client wants to connect to default display */
n = getenv("WAYLAND_DISPLAY");
+ if (!n) n = "wayland-0";
- if (!n)
- n = "wayland-0";
-
- if (n)
- {
- /* we have a default wayland display */
+ /* 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
{