Do not pass NULL to memcpy
authorTom Tromey <tom@tromey.com>
Thu, 26 Jul 2018 23:48:40 +0000 (17:48 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 3 Oct 2018 21:19:06 +0000 (15:19 -0600)
commit10657c047e4e0257440c80fda5f4e23a3452616c
tree68d91988f0db35427f735036697378d5793e689f
parentfb9bbfd7f2d39a1d4850fcf0f63ef1f077f55e4b
Do not pass NULL to memcpy

-fsanitize=undefined pointed out a spot that passes NULL to memcpy,
which is undefined behavior according to the C standard.

gdb/ChangeLog
2018-10-03  Tom Tromey  <tom@tromey.com>

* namespace.c (add_using_directive): Don't pass NULL to memcpy.
gdb/ChangeLog
gdb/namespace.c