Alternate fix for PR ada/71358
authorBob Duff <duff@adacore.com>
Mon, 18 Sep 2017 08:43:37 +0000 (08:43 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 18 Sep 2017 08:43:37 +0000 (08:43 +0000)
commit677d7278a316ef461a6c8e2b501c285d2cf356f7
tree3eb38686e6c88f874cd016a89c7c189c4d465118
parent2a63b04ee82dcdd9582ccb3fb7d853a19db28aec
Alternate fix for PR ada/71358

2017-09-18  Bob Duff  <duff@adacore.com>

Alternate fix for PR ada/71358
* libgnat/g-comlin.adb (Getopt): Remove manual null access checks.
Instead, make a local copy of Config, and if it's null, allocate an
empty Command_Line_Configuration_Record, so we won't crash on null
pointer dereference.

From-SVN: r252909
gcc/ada/ChangeLog
gcc/ada/libgnat/g-comlin.adb