From: Sung-Jin Park Date: Tue, 9 Jul 2019 09:40:54 +0000 (+0900) Subject: shell-client.c: fix to check null about globals X-Git-Tag: submit/tizen/20190709.095046^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9379a0dbad1218962d9f2197faeb6658f9e66f9;p=platform%2Fcore%2Fuifw%2Fpepper.git shell-client.c: fix to check null about globals Change-Id: Ia14bdc29262f7aab22ed47a200f0f3114d73ea1b Signed-off-by: Sung-Jin Park --- diff --git a/src/lib/desktop-shell/shell-client.c b/src/lib/desktop-shell/shell-client.c index a43a8db..9a1f23c 100644 --- a/src/lib/desktop-shell/shell-client.c +++ b/src/lib/desktop-shell/shell-client.c @@ -178,17 +178,17 @@ main(int argc, char **argv) wl_registry_add_listener(display.registry, ®istry_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; }