From 80a7eb6ac7d6661b06e014329cac101e83d2003c Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Mon, 31 Mar 2025 16:12:22 +0200 Subject: [gdb] Check strpbrk against nullptr In noticed two occurrences of "if (strpbrk (...))". Fix this style issue by checking against nullptr. --- gdb/go32-nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/go32-nat.c') diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c index 8453366..7852f56 100644 --- a/gdb/go32-nat.c +++ b/gdb/go32-nat.c @@ -697,7 +697,7 @@ go32_nat_target::create_inferior (const char *exec_file, "not enough memory.\n")); /* Parse the command line and create redirections. */ - if (strpbrk (args, "<>")) + if (strpbrk (args, "<>") != nullptr) { if (redir_cmdline_parse (args, &child_cmd) == 0) args = child_cmd.command; -- cgit v1.1