e_comp_screeen: fix unchecked function return 66/173166/1
authorJuyeon Lee <juyeonne.lee@samsung.com>
Tue, 20 Mar 2018 02:08:13 +0000 (11:08 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Tue, 20 Mar 2018 02:08:13 +0000 (11:08 +0900)
Change-Id: I5b36e835de1bae2e957ae62802be51cf119377ba

src/bin/e_comp_screen.c

index bae813ca5f05933afd05003bf1ccdf448d946af1..20234bce1519d24b3ca1673c6898dd08c12ca561 100644 (file)
@@ -531,6 +531,7 @@ _e_comp_screen_init_outputs(E_Comp_Screen *e_comp_screen)
    int i;
    Eina_Bool scale_updated = EINA_FALSE;
    Eina_Bool connection_check = EINA_FALSE;
+   tdm_error err = TDM_ERROR_NONE;
 
    /* init e_output */
    if (!e_output_init())
@@ -540,8 +541,9 @@ _e_comp_screen_init_outputs(E_Comp_Screen *e_comp_screen)
      }
 
    /* get the num of outputs */
-   tdm_display_get_output_count(tdisplay, &num_outputs);
-   if (num_outputs < 1)
+   err = tdm_display_get_output_count(tdisplay, &num_outputs);
+   if ((err != TDM_ERROR_NONE) ||
+       (num_outputs < 1))
      {
         ERR("fail to get tdm_display_get_output_count\n");
         return EINA_FALSE;