Re: [C PATCH] Don't crash on null param (PR c/65066)

2015-02-16 Thread Jakub Jelinek
On Mon, Feb 16, 2015 at 12:05:06PM +0100, Marek Polacek wrote: > The CUR_PARAM can be null at this place, so check for that. > > I had hoped that extra testing the original patch by running the C testsuite > with -Wformat=2 enabled would detect such a case, but apparently not. :( > > Bootstrapped

[C PATCH] Don't crash on null param (PR c/65066)

2015-02-16 Thread Marek Polacek
The CUR_PARAM can be null at this place, so check for that. I had hoped that extra testing the original patch by running the C testsuite with -Wformat=2 enabled would detect such a case, but apparently not. :( Bootstrapped/regtested on x86_64-linux, ok for trunk? 2015-02-16 Marek Polacek