mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-18 22:05:55 -05:00
socket-test: Refactor if check into the assert
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
parent
69a5a6d16c
commit
2b236af9b7
1 changed files with 1 additions and 2 deletions
|
|
@ -47,8 +47,7 @@ static const char *
|
|||
require_xdg_runtime_dir(void)
|
||||
{
|
||||
char *val = getenv("XDG_RUNTIME_DIR");
|
||||
if (!val)
|
||||
assert(0 && "set $XDG_RUNTIME_DIR to run this test");
|
||||
assert(val && "set $XDG_RUNTIME_DIR to run this test");
|
||||
|
||||
return val;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue