mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
[gdb] Check strpbrk against nullptr
In noticed two occurrences of "if (strpbrk (...))". Fix this style issue by checking against nullptr.
This commit is contained in:
@@ -59,7 +59,7 @@ escape_characters (const char *arg, const char *special)
|
||||
#ifdef __MINGW32__
|
||||
bool quoted = false;
|
||||
|
||||
if (strpbrk (arg, special))
|
||||
if (strpbrk (arg, special) != nullptr)
|
||||
{
|
||||
quoted = true;
|
||||
result += quote;
|
||||
|
||||
Reference in New Issue
Block a user