ecore_x_2w: add pointer check
authorJuan Zhao <juan.j.zhao@intel.com>
Wed, 30 Oct 2013 05:31:05 +0000 (13:31 +0800)
committerJuan Zhao <juan.j.zhao@intel.com>
Thu, 12 Dec 2013 09:18:34 +0000 (17:18 +0800)
commit62333e54b8183d3943f83fad2b7eb76db2aaa255
treea39b9d750485aef2acb23b8a36814085f037a716
parent5634d7165c0f5bd2e6ae22c89c333b9791327160
ecore_x_2w: add pointer check

To fix this build issue:
phone-0.6.63.25/lib/dialer/ph-dialer-view.c:1150:2:
     error: invalid use of void expression

And the code there is like this:
ecore_x_window_size_get(win, &win_width, NULL);

So the fix is, to check w and h to avoid when they're null.

And one more thing is to use (int *) to use the pointer correctly.
src/ecore_x_2w.h
src/elementary_2w.h
src/utilx_2w.h
src/xi_2w.h