From e0dacb8e7d6dda5f6bd7dfb199b97703e308e16f Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Tue, 6 Sep 2022 10:36:38 +0900 Subject: [PATCH] clients: Fix null dereferencing Change-Id: Ibce07f092400ecedbe3ad93d220c06fe3c87f97a --- clients/simple-shm-shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clients/simple-shm-shell.c b/clients/simple-shm-shell.c index cbcdf97..2ca0717 100644 --- a/clients/simple-shm-shell.c +++ b/clients/simple-shm-shell.c @@ -250,7 +250,8 @@ int main (void) /* create test info */ ti = _create_wl_test_info (); - GOTO_IF_FAIL(ti != NULL, fail); + if (!ti) + return -1; /* init */ ti->width = BUF_WIDTH; -- 2.7.4