It can be NULL when called from UpdateScreen. If the caller is not interested in return value, don't try to fill it in.
Stack trace: VNC_Dispatch (caller=1, call_arg=1279, call_ptr=0x2cf, ctx=0x1309e18, serial=0, ret_val=0x0) fusion_call_execute (call=0x1309eb0, flags=FCEF_ONEWAY, call_arg=1279, call_ptr=0x2cf, ret_val=0x0) UpdateScreen (vnc=0x1309e18, update=0x7fff94805e90) Signed-off-by: Peter Tworek <tworaz...@gmail.com> --- systems/vnc/vnc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/systems/vnc/vnc.c b/systems/vnc/vnc.c index 9024226..06b7e45 100644 --- a/systems/vnc/vnc.c +++ b/systems/vnc/vnc.c @@ -325,7 +325,9 @@ VNC_Dispatch( int caller, modified.region.y1 = (long)call_ptr >> 16; modified.region.y2 = (long)call_ptr & 0xffff; - *ret_val = VNC_Dispatch_MarkRectAsModified( vnc, &modified ); + int r = VNC_Dispatch_MarkRectAsModified( vnc, &modified ); + if (ret_val) + *ret_val = r; return FCHR_RETURN; } -- 1.8.1.5 _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev