[PATCH]: Minor fix in blockframe.c
Kevin Buettner
kevinb@cygnus.com
Mon Dec 11 13:24:00 GMT 2000
On Dec 11, 1:09pm, Michael Snyder wrote:
> When setting up a new frame_info object, just use memset to pre-zero
> it, rather than zeroing selected fields individually. That way new ones
> won't get overlooked.
>
> 2000-12-11 Michael Snyder <msnyder@mvstp600e.cygnus.com>
>
> * blockframe.c (get_prev_frame): Zero all fields of prev by
> default using memset (instead of one at a time).
>
[...]
> ! /* Zero all fields by default. */
> ! memset (prev, 0, sizeof (struct frame_info);
> !
It looks to me like you're missing a paren. (No matter how trivial, I
think we should always do test builds first...)
Kevin
More information about the Gdb-patches
mailing list