------- Comment #7 from drab at kepler dot fjfi dot cvut dot cz  2006-01-16 
01:38 -------
(In reply to comment #6)
> (In reply to comment #2)
...
> So perhaps this should rather be something like:
> 
> printed = xrealloc (printed, cl_options_count);
> memset (printed, 0, cl_options_count);

Or perhaps:

xfree (!printed);
printed = xmalloc (cl_options_count);
memset (printed, 0, cl_options_count);

In case there is no 'xrealloc'. ;)

Or are we absolutely sure, that if the 'printed' is non-NULL, that then it
points to the space of at least 'cl_options_count' size?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25636

Reply via email to