shell-client.c: fix to check null about globals 19/209619/1 accepted/tizen/unified/20190710.103518 submit/tizen/20190709.095046
authorSung-Jin Park <sj76.park@samsung.com>
Tue, 9 Jul 2019 09:40:54 +0000 (18:40 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 9 Jul 2019 09:40:54 +0000 (18:40 +0900)
Change-Id: Ia14bdc29262f7aab22ed47a200f0f3114d73ea1b
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/lib/desktop-shell/shell-client.c

index a43a8db..9a1f23c 100644 (file)
@@ -178,17 +178,17 @@ main(int argc, char **argv)
        wl_registry_add_listener(display.registry, &registry_listener, &display);
        wl_display_roundtrip(display.display);
 
-       if (display.shm) {
+       if (!display.shm) {
                fprintf(stderr, "Couldn't find wl_shm\n");
                return -1;
        }
 
-       if (display.compositor) {
+       if (!display.compositor) {
                fprintf(stderr, "Couldn't find wl_compositor\n");
                return -1;
        }
 
-       if (display.shell) {
+       if (!display.shell) {
                fprintf(stderr, "Couldn't find pepper_shell\n");
                return -1;
        }