Signed-off-by: Bryce Harrington <[email protected]>
---
 tests/socket-test.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/socket-test.c b/tests/socket-test.c
index 2e336fd..bb034f4 100644
--- a/tests/socket-test.c
+++ b/tests/socket-test.c
@@ -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;
 }
-- 
1.9.1

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to