wl_shm: Fix uninitialized warning

warning: variable 'surf' is used uninitialized whenever 'if' condition
is true [-Wsometimes-uninitialized]
This commit is contained in:
Jean-Philippe Andre 2016-06-07 15:11:27 +09:00
parent ecc1d5dfaf
commit 0e17dc79b3
1 changed files with 2 additions and 2 deletions

View File

@ -629,7 +629,7 @@ _evas_dmabuf_surface_destroy(Surface *s)
Eina_Bool
_evas_dmabuf_surface_create(Surface *s, int w, int h, int num_buff)
{
Dmabuf_Surface *surf;
Dmabuf_Surface *surf = NULL;
int i = 0;
if (dmabuf_totally_hosed) return EINA_FALSE;
@ -672,6 +672,6 @@ _evas_dmabuf_surface_create(Surface *s, int w, int h, int num_buff)
return EINA_TRUE;
err:
_fallback(surf, w, h);
if (surf) _fallback(surf, w, h);
return EINA_FALSE;
}