]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb] Check strpbrk against nullptr
authorTom de Vries <tdevries@suse.de>
Mon, 31 Mar 2025 14:12:22 +0000 (16:12 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 31 Mar 2025 14:12:22 +0000 (16:12 +0200)
commit80a7eb6ac7d6661b06e014329cac101e83d2003c
tree8a0c0e7598009b9530d432bf32c19b2592228db3
parent7b34a95034ff62537db66049a1736e7b4436e499
[gdb] Check strpbrk against nullptr

In noticed two occurrences of "if (strpbrk (...))".

Fix this style issue by checking against nullptr.
gdb/go32-nat.c
gdbsupport/common-inferior.cc