]> git.ipfire.org Git - thirdparty/autoconf.git/commit
autom4te: don’t crash when warnings have no stacktrace
authorZack Weinberg <zackw@panix.com>
Mon, 7 Dec 2020 16:32:55 +0000 (11:32 -0500)
committerZack Weinberg <zackw@panix.com>
Mon, 7 Dec 2020 16:32:55 +0000 (11:32 -0500)
commitb4ec547b86e6dd878d312cc79dddabce825a4492
tree9a25d07b55e57b5d21f862600a682c290876673b
parentfbd2636f3db4578f3ccab42728feee57b1f8c5e2
autom4te: don’t crash when warnings have no stacktrace

In testing on Darwin (OSX), sometimes warnings reported from M4 code
reach autom4te with no stack trace at all, causing the perl script to
crash with a “use of uninitialized value” error.  The root cause of
the problem is not clear to me, but the script certainly shouldn’t
crash.

Problem found by Jannick <thirdedition@gmx.net>.

* bin/autom4te.in: When processing warnings, make sure $stacktrace is
  defined.
bin/autom4te.in