diff options
author | Tom Tromey <tromey@adacore.com> | 2020-02-19 07:50:21 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-02-19 07:50:21 -0700 |
commit | d3c22fa82e2f9098ad5a0158a73f07db12426fff (patch) | |
tree | f0908d443aa596a4f73b0a7203dd885bf6748e4c /gas/doc/as.texi | |
parent | a7e12755d57879884c523cae1cf009efc9da933c (diff) | |
download | binutils-d3c22fa82e2f9098ad5a0158a73f07db12426fff.zip binutils-d3c22fa82e2f9098ad5a0158a73f07db12426fff.tar.gz binutils-d3c22fa82e2f9098ad5a0158a73f07db12426fff.tar.bz2 |
Remove useless NULL check in python.c
I noticed that do_start_initialization, in python.c, checks the result
of xmalloc. However, xmalloc cannot fail, so this check is useless.
This patch also changes the code to use XNEWVEC.
gdb/ChangeLog
2020-02-19 Tom Tromey <tromey@adacore.com>
* python/python.c (do_start_initialization): Use XNEWVEC. Remove
NULL check.
Diffstat (limited to 'gas/doc/as.texi')
0 files changed, 0 insertions, 0 deletions