clients: Fix null dereferencing 53/280853/1 accepted/tizen/unified/20220908.013417
authorSeunghun Lee <shiin.lee@samsung.com>
Tue, 6 Sep 2022 01:36:38 +0000 (10:36 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Tue, 6 Sep 2022 01:57:03 +0000 (10:57 +0900)
Change-Id: Ibce07f092400ecedbe3ad93d220c06fe3c87f97a

clients/simple-shm-shell.c

index cbcdf97..2ca0717 100644 (file)
@@ -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;