lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Initialize interval in grob_stencil_extent().


From: Boris Shingarov
Subject: Re: [PATCH] Initialize interval in grob_stencil_extent().
Date: Sun, 23 May 2010 19:10:03 -0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4


There is a chance of returning garbage values from grob_stencil_extent()
due to this uninitialized variable issue.
No there is not: because this is C++, not C.
The existing code is guaranteed to initialize e to the empty interval (i.e., the special interval [+inf, -inf]); your code initializes it to a different interval -- the single-point interval [0,0] -- which is not a difference in "uninitialized garbage" but a question of semantics.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]